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. Geting a Controls ID from a HWND.

Geting a Controls ID from a HWND.

Scheduled Pinned Locked Moved C / C++ / MFC
csharphelp
4 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.
  • J Offline
    J Offline
    Jawache
    wrote on last edited by
    #1

    Any help would be appreciated. cheers Asim Hussain e: asim@jawache.net w: www.jawache.net

    L V 2 Replies Last reply
    0
    • J Jawache

      Any help would be appreciated. cheers Asim Hussain e: asim@jawache.net w: www.jawache.net

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Have you tried GetDlgCtrlID(hWnd)? regards

      J 1 Reply Last reply
      0
      • L Lost User

        Have you tried GetDlgCtrlID(hWnd)? regards

        J Offline
        J Offline
        Jawache
        wrote on last edited by
        #3

        That'll do for me. Cheers Asim Hussain e: asim@jawache.net w: www.jawache.net

        1 Reply Last reply
        0
        • J Jawache

          Any help would be appreciated. cheers Asim Hussain e: asim@jawache.net w: www.jawache.net

          V Offline
          V Offline
          valikac
          wrote on last edited by
          #4

          What kind of object do you have a handle to? For example, you could use DWORD GetWindowThreadProcessId() for a window. ----- DWORD GetWindowThreadProcessId(HWND hWnd, LPDWORD lpdwProcessId); ----- Kuphryn

          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