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.