Implementing "Internet Options" in Internet Explorer
Posted
by Michelle Whiteaway
on December 6th, 1998
Using the ClassWizard, select the "Add Class..." button. Select "From a type library...". Browse to the systems 32 directory and select SHDocVw.dll. Select the IShellDispatch item and click on OK. This will add two files to your project, shdocvw.cpp and shdocvw.h Include shdocvw.h in the source file which is invoking the internet options. Include Initguid.h in the source file which is invoking the internet options.Define the GUID for the shell class:
DEFINE_GUID(CLSID_Shell,0x13709620,0xc279,0x11ce,0xa4,0x9e,0x44,0x45,0x53,0x54,0x00,0x00);
and some code to actually invoke the control panel applet...
IShellDispatch disp;
HRESULT sc;
sc = ::CoInitialize(NULL);
if (FAILED (sc))
{
CString str;
str.Format(_T("Failed to Initialize."));
TRACE( str) ;
return;
}
sc = ::CoCreateInstance( CLSID_Shell, NULL, CLSCTX_SERVER,
IID_IDispatch, (void**)&disp ) ;
if (FAILED (sc))
{
CString str;
str.Format(_T("Failed to create Instance :-( "));
TRACE( str) ;
return;
}
disp.ControlPanelItem("inetcpl.cpl");
These steps and code have been tested by starting with a new MFC app
wizard dialog based application.
Last updated: December 6, 1998

Comments
ADDING A LANGUAGE TO THE LIST OF LANGUAGES SUPPORTED BY IE
Posted by Legacy on 11/02/2003 12:00amOriginally posted by: SUNDEEP
HI,
ReplyI WOULD LIKE TO ADD A LANGUAGE SUPPORTED BY IE THRIUGH JAVASCRIPT CODE.( TOOLS->GENERAL->LANGUAGES>EN-UK)
CAN ANY ONE HELP ME..
THANKS
SUNDEEP
Avoiding download of ZIP/EXE files in Server
Posted by Legacy on 10/01/2003 12:00amOriginally posted by: P.V.Narasimha Rao
Hi,
How can I avoid the .ZIP or .EXE files residing in the server, by directly giving the path in the browser's address bar if once i came to know the fullpath of file where it is in the server. For eg if i give the path in the browser like http://localhost/simpletest/file1.exe, it is starting to download. Plz help me in this regard.
Thanks in Advance
ReplyHow to remove or disable back button in browser.
Posted by Legacy on 09/23/2003 12:00amOriginally posted by: Nalni Kanth
How to remove or disable back button in browser.
ReplyHow to add an Button in the Existing IE Toolbar
Posted by Legacy on 08/06/2003 12:00amOriginally posted by: Manoj S P
ReplyIgnore Client Certificate Request
Posted by Legacy on 07/05/2003 12:00amOriginally posted by: Hemang
How to Ignore Client Certificate Request without user attention for https connection? I don't want certificate selection dialong box to be presented and IE automatically to consider Ignore for particular URL..How can I develope plug-in for the purpose?
ReplyControling favorites programatically
Posted by Legacy on 04/10/2003 12:00amOriginally posted by: vignesh
how to add a URL/address to favorites programtically from asp pages??
Replytest
Posted by Legacy on 03/18/2003 12:00amOriginally posted by: test
test
ReplyHow to change proxies!!!
Posted by Legacy on 11/25/2002 12:00amOriginally posted by: Jeremy Shum
Does any one know how to AUTOMATICALLY change the INTERNET EXPLORER's settings for PROXY SERVERS in VISUAL BASIC.
So in Visual Basic, you can type in a text box the proxy server you want to have, and it can automatically change in the internet explorer settings, without opening internet explore's setting window. And if internet explore's settings are disabled.
Replyhow can I get the handle of a running IE
Posted by Legacy on 10/14/2002 12:00amOriginally posted by: zhua1547
ReplyHow can i restrict Copy and Printing command from asp Page
Posted by Legacy on 07/26/2002 12:00amOriginally posted by: Pushkar
ReplyLoading, Please Wait ...