|
2 Lines ? I can't believe it !
|
ATL_NewContainer(
0 , //ID of the container ( up to 10 )
hWnd , //parent window
"{8856F961-340A-11D0-A96B-00C04FD705A2}" , //CLS-ID of the ActiveX
10,10,600,400 ) ; //placement of the activeX in your window
ATL_ShowContainer( 0 ) ; //display the container
//browse to a web site
ATL_InvokeCommand(
0, //ID of the container
"INVOKE_FUNC"," //ask the container to call a function
Navigate2", //tell it that it is the Navigate2 function
"http://www.phelios.com", //URL we want to go to
"","","","") ; //unused parameters
And that's ALL, the user can browse a website directly into your application
|