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 get a handle to a window (not my application)

How to get a handle to a window (not my application)

Scheduled Pinned Locked Moved C / C++ / MFC
helpcomlinuxtutorialquestion
3 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.
  • B Offline
    B Offline
    Bernhard
    wrote on last edited by
    #1

    I have got an application, which changes the resolution of the computer(may sound like spyware etc... but it's just used internally). The problem is that the Taskbar keeps flowing around in the middle of the screen. Is there any way to get a handle to the taskbar. With Spy++ I found out that the WndClass is "Shell_TrayWnd". Does this help ? As I said.. it's no adware / spyware or something I like that.. I hate those programs like we all do.


    All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects."
    Roger Wright
    http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx

    D Mircea PuiuM 2 Replies Last reply
    0
    • B Bernhard

      I have got an application, which changes the resolution of the computer(may sound like spyware etc... but it's just used internally). The problem is that the Taskbar keeps flowing around in the middle of the screen. Is there any way to get a handle to the taskbar. With Spy++ I found out that the WndClass is "Shell_TrayWnd". Does this help ? As I said.. it's no adware / spyware or something I like that.. I hate those programs like we all do.


      All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects."
      Roger Wright
      http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Use FindWindow() or FindWindowEx().


      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      1 Reply Last reply
      0
      • B Bernhard

        I have got an application, which changes the resolution of the computer(may sound like spyware etc... but it's just used internally). The problem is that the Taskbar keeps flowing around in the middle of the screen. Is there any way to get a handle to the taskbar. With Spy++ I found out that the WndClass is "Shell_TrayWnd". Does this help ? As I said.. it's no adware / spyware or something I like that.. I hate those programs like we all do.


        All the label says is that this stuff contains chemicals "... known to the State of California to cause cancer in rats and low-income test subjects."
        Roger Wright
        http://www.codeproject.com/lounge.asp?select=965687&exp=5&fr=1#xx965687xx

        Mircea PuiuM Offline
        Mircea PuiuM Offline
        Mircea Puiu
        wrote on last edited by
        #3

        HWND hTB = ::FindWindow("Shell_TrayWnd", NULL); SkyWalker

        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