Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I can get a IHTMLDocument2 interface from IE in the following method.
C++
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 );


is there any similar method for chrome or cef browsers?

I do some search on internet, but too few information. has any one tried this before? Is it possible to finish the job? any tip will be appreciate. thanks in advance.
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900