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. COM
  4. Getting Window Handle of an Explorer Band

Getting Window Handle of an Explorer Band

Scheduled Pinned Locked Moved COM
helpquestion
4 Posts 2 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.
  • G Offline
    G Offline
    georgekjolly
    wrote on last edited by
    #1

    Hai all. I have created a Toolbar for Internet Explorer. I need to get the window handle of an Explorer Band(Created by me) in my tool bar. I know the class ID of the Explorer Band, and I am able to hide and unhide the Explorer Band using that Class ID , from the toolbar using ShowBrowserBar(&vtBandGUID, &vtShow, 0); function. But for my purpose, I need to get the window handle of the Explorer Band How I can Get the window handle?? . Please Help me Thanks George

    P 1 Reply Last reply
    0
    • G georgekjolly

      Hai all. I have created a Toolbar for Internet Explorer. I need to get the window handle of an Explorer Band(Created by me) in my tool bar. I know the class ID of the Explorer Band, and I am able to hide and unhide the Explorer Band using that Class ID , from the toolbar using ShowBrowserBar(&vtBandGUID, &vtShow, 0); function. But for my purpose, I need to get the window handle of the Explorer Band How I can Get the window handle?? . Please Help me Thanks George

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      IWebBrowser2::get_HWND gives you handle to main explorer window. Use EnumChildProc,enumerates children using this handle. You should get any window you want.

      Prasad Notifier using ATL | Operator new[],delete[][^]

      G 1 Reply Last reply
      0
      • P prasad_som

        IWebBrowser2::get_HWND gives you handle to main explorer window. Use EnumChildProc,enumerates children using this handle. You should get any window you want.

        Prasad Notifier using ATL | Operator new[],delete[][^]

        G Offline
        G Offline
        georgekjolly
        wrote on last edited by
        #3

        Hai Prasad , Thank you very much for ur reply . it helped me to rectify my problem. Thanks George

        P 1 Reply Last reply
        0
        • G georgekjolly

          Hai Prasad , Thank you very much for ur reply . it helped me to rectify my problem. Thanks George

          P Offline
          P Offline
          prasad_som
          wrote on last edited by
          #4

          Welcome !

          Prasad Notifier using ATL | Operator new[],delete[][^]

          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