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 find component properties when i hold the object hWnd ?

How to find component properties when i hold the object hWnd ?

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    I need to find CButton\CComboBox\ some other control properties and i have the hwnd of the component - How can i do it ? Thanks.

    S 1 Reply Last reply
    0
    • L Lost User

      I need to find CButton\CComboBox\ some other control properties and i have the hwnd of the component - How can i do it ? Thanks.

      S Offline
      S Offline
      spsharma
      wrote on last edited by
      #2

      try LONG GetWindowLong(HWND hWnd, int nIndex);

      L 1 Reply Last reply
      0
      • S spsharma

        try LONG GetWindowLong(HWND hWnd, int nIndex);

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

        What i need is little more complex. I want not only the properties that i can get by using GetWindowLong - i want also the properties around the object. I mean properties like - object color, text, size, class, parent of the object ( if the object is CButton that "sit" on some panel or dialog ) So... How can i get all those information ?

        R 1 Reply Last reply
        0
        • L Lost User

          What i need is little more complex. I want not only the properties that i can get by using GetWindowLong - i want also the properties around the object. I mean properties like - object color, text, size, class, parent of the object ( if the object is CButton that "sit" on some panel or dialog ) So... How can i get all those information ?

          R Offline
          R Offline
          Rajkumar R
          wrote on last edited by
          #4

          Yanshof wrote:

          I mean properties like - object color, text, size, class, parent of the object

          go through CWnd class Members.

          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