Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to open Pop-up Blocker Settings window of IE programmatically

How to open Pop-up Blocker Settings window of IE programmatically

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++tutorialquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rahul Vaishnav
    wrote on last edited by
    #1

    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 ?

    _ N 2 Replies Last reply
    0
    • R Rahul Vaishnav

      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 ?

      _ Offline
      _ Offline
      _AnsHUMAN_
      wrote on last edited by
      #2

      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_

      R 1 Reply Last reply
      0
      • R Rahul Vaishnav

        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 ?

        N Offline
        N Offline
        Naveen
        wrote on last edited by
        #3

        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]

        N 1 Reply Last reply
        0
        • _ _AnsHUMAN_

          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_

          R Offline
          R Offline
          Rahul Vaishnav
          wrote on last edited by
          #4

          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:

          1 Reply Last reply
          0
          • N Naveen

            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]

            N Offline
            N Offline
            Naveen
            wrote on last edited by
            #5

            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]

            R 1 Reply Last reply
            0
            • N Naveen

              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]

              R Offline
              R Offline
              Rahul Vaishnav
              wrote on last edited by
              #6

              Thank you very much... Sorry by mistaken it was down voted.. It is working .... Thank you very much.. :)

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups