UINT nMsg = ::RegisterWindowMessage( _T("WM_HTML_GETOBJECT") ); ::SendMessageTimeout( (HWND)hwnd_parent, nMsg, 0L, 0L, SMTO_ABORTIFHUNG, 1000, (DWORD*)&lRes ); CComPtr<IHTMLDocument2> spDoc; hr = ObjectFromLresult( lRes, IID_IHTMLDocument, 0, (void**)&spDoc );
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)