chtmlview
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
- first i use navigate2 to load a web page - then i want to fill in an edit box and then to press a submit button (of course i dont want to do it manually, but code pls)
You need to get a pointer the the IHTMLDocument2 interface which can be done like so:
IDispatch* pDisp = GetHtmlDocument();
IHTMLDocument2* pDoc = NULL;
pDisp->QueryInterface(IID_IHTMLDocument2, (void**)&pDoc);
IHTMLElementCollection* pColl = NULL;
pDoc->get_forms(&pColl);Then you can browse through all the objects on the form (document) by using the methods of the IHTMLElementCollection interface. Hope this helps. Bret Faller Odyssey Computing, Inc.