1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

get Class

Discussion in 'Win32' started by johny10151981, Oct 7, 2008.

  1. johny10151981

    johny10151981 New Member

    Joined:
    Jul 7, 2010
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    0
    is there any kind of function by which i can retrive the class of specifide window handle.
     
  2. imported_xpi0t0s

    imported_xpi0t0s New Member

    Joined:
    Jul 18, 2008
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    0
    Yep, use GetClassName to get the class name from the window handle, GetWindowLong(hWnd, GWL_HINSTANCE) to get the instance from the window handle, then call GetClassInfoEx to get the class from the instance and class name.
     

Share This Page