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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. hWnd and GetDlgItem

hWnd and GetDlgItem

Scheduled Pinned Locked Moved C / C++ / MFC
c++
4 Posts 3 Posters 3 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.
  • O Offline
    O Offline
    Oriented
    wrote on last edited by
    #1

    Visual C++ 6 can anyone send me a useful link about 1. the hWnd class and its usage . 2. GetDlgItem() and its reverse (i.e, SetDlgItem() if found!!)

    D C 2 Replies Last reply
    0
    • O Oriented

      Visual C++ 6 can anyone send me a useful link about 1. the hWnd class and its usage . 2. GetDlgItem() and its reverse (i.e, SetDlgItem() if found!!)

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

      Oriented wrote: 1. the hWnd class and its usage . hWnd is not a class, it's a window handle. Oriented wrote: 2. GetDlgItem() and its reverse (i.e, SetDlgItem() if found!!) Have you checked MSDN?


      "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

      C 1 Reply Last reply
      0
      • O Oriented

        Visual C++ 6 can anyone send me a useful link about 1. the hWnd class and its usage . 2. GetDlgItem() and its reverse (i.e, SetDlgItem() if found!!)

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        hWnd is not a class, it's a HANDLE. In other words, it's a number that uniquely identifies a window on the system. CWnd is a class in MFC which wraps a hWnd. There is no such thing as SetDlgItem, from memory you put a control into a window by making that window it's parent. http://www.msdn.com is a more up to date version of the MSDN than came with your VC6, but the VC6 one just might be better for you. Install it now. Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

        1 Reply Last reply
        0
        • D David Crow

          Oriented wrote: 1. the hWnd class and its usage . hWnd is not a class, it's a window handle. Oriented wrote: 2. GetDlgItem() and its reverse (i.e, SetDlgItem() if found!!) Have you checked MSDN?


          "The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          You beat me to it.... Christian I have drunk the cool-aid and found it wan and bitter. - Chris Maunder

          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