LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

IE handle Labwindows

hi,
 
i went through the webbrowser activex example.i loaded a web page int to the panel .can i get the handle for the page loaded bcos i want to access the controls present in the webpage. can anyone tell how can we do it? when i used getHWND funtion it returns the value 0;
 
thanks in advance,
 
Radha
0 Kudos
Message 1 of 4
(3,336 Views)
The web-browser is an Activex control hosted in the CVI panel. You are limited to the ActiveX methods and properties exposed by the control when it comes to accessing any features of the control. These functions are wrapped as C functions in the inet.fp instrument of the project. You can also find more documentation about this Microsoft ActiveX control on MSDN. For example, the IWebBrowser2 interface is documented at:
 
0 Kudos
Message 2 of 4
(3,313 Views)
hi mohan,
 
thanks for your reply.
I tried using getdocument fucntion ,but it doestnt return the interface pointer.i think if i get it i will be able to access the controls the HTML page.i am seeking your help on this.
 
thanks,
Radha R
 
0 Kudos
Message 3 of 4
(3,286 Views)

I am able to get the interface pointer for the Document object as follows:

IUnknown *pUnk = 0;
SHDocVw_GetProperty (ieHandle, 0, SHDocVw_IWebBrowser2Document, CAVT_UNKNOWN, &pUnk);

// Do something with the document interface

if (pUnk)
    pUnk->lpVtbl->Release(pUnk);

I tried this at the end of the TellIEToNavigate function of samples/activex/ie/iedemo.c.

Message 4 of 4
(3,262 Views)