How to open Pop-up Blocker Settings window of IE programmatically
-
Hi all, Please help me to over come this problem , I want to open Pop-up Blocker Settings window of Internet Explorer through VC++ coding. Please provide some solution for this ?
-
Hi all, Please help me to over come this problem , I want to open Pop-up Blocker Settings window of Internet Explorer through VC++ coding. Please provide some solution for this ?
No ideas of what you want to do after opening the settings window. however this won't be possible unless you are developing some Plug-In for IE. On the other hand if you want to add allow (pop up setting)some website you can create an entry in the registry at the following location. HKCU\Software\Microsoft\Internet Explorer\New Windows\Allow I hope I understood uj correctly...
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
Hi all, Please help me to over come this problem , I want to open Pop-up Blocker Settings window of Internet Explorer through VC++ coding. Please provide some solution for this ?
Rahul Vaishnav wrote:
Please provide some solution for this ?
I just find out that, the DisplayPopupWindowManagementDialog in the "C:\WINDOWS\system32\inetcpl.cpl" can be used to show the popup blocker dialog. Here is the code to display the dialog.
typedef BOOL (WINAPI *DisplayPopupWindowManagementDialogP)( HANDLE hWnd, LPCTSTR lpCaption );
void TestFunc( HANDLE hParentWnd )
{HMODULE hModule = LoadLibrary( \_T("inetcpl.cpl") ); DisplayPopupWindowManagementDialogP DisplayPopupWindowManagementDialog = (DisplayPopupWindowManagementDialogP)GetProcAddress(hModule, "DisplayPopupWindowManagementDialog" ); if( !DisplayPopupWindowManagementDialog ) { return;//error } DisplayPopupWindowManagementDialog( hParentWnd, \_T("www.Sitetounblock.com"));
}
nave [OpenedFileFinder]
-
No ideas of what you want to do after opening the settings window. however this won't be possible unless you are developing some Plug-In for IE. On the other hand if you want to add allow (pop up setting)some website you can create an entry in the registry at the following location. HKCU\Software\Microsoft\Internet Explorer\New Windows\Allow I hope I understood uj correctly...
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
thanks for reply, Yes , actually i am developing a toolbar for IE. I have some requirement like on click of my toolbar button i need to open that "Pop-up Blocker Settings window". Is it possible to open this window programmatically? :doh:
-
Rahul Vaishnav wrote:
Please provide some solution for this ?
I just find out that, the DisplayPopupWindowManagementDialog in the "C:\WINDOWS\system32\inetcpl.cpl" can be used to show the popup blocker dialog. Here is the code to display the dialog.
typedef BOOL (WINAPI *DisplayPopupWindowManagementDialogP)( HANDLE hWnd, LPCTSTR lpCaption );
void TestFunc( HANDLE hParentWnd )
{HMODULE hModule = LoadLibrary( \_T("inetcpl.cpl") ); DisplayPopupWindowManagementDialogP DisplayPopupWindowManagementDialog = (DisplayPopupWindowManagementDialogP)GetProcAddress(hModule, "DisplayPopupWindowManagementDialog" ); if( !DisplayPopupWindowManagementDialog ) { return;//error } DisplayPopupWindowManagementDialog( hParentWnd, \_T("www.Sitetounblock.com"));
}
nave [OpenedFileFinder]
Why is it down voted?? Am I wrong? If so please correct. I found this function from the call stack of the IE. So I am sure that, IE is also calling this function.
nave [OpenedFileFinder]
-
Why is it down voted?? Am I wrong? If so please correct. I found this function from the call stack of the IE. So I am sure that, IE is also calling this function.
nave [OpenedFileFinder]
Thank you very much... Sorry by mistaken it was down voted.. It is working .... Thank you very much.. :)