getting control type at runtime

This is a discussion on getting control type at runtime within the Windows Programming forums, part of the Platform Specific Boards category; What is the easiest way to detect a type of a standard control (edit box, list box, etc.; not common ...

  1. #1
    Unregistered
    Guest

    getting control type at runtime

    What is the easiest way to detect a type of a standard control (edit box, list box, etc.; not common controls) if I have its handle, ID and handle of its parent?

  2. #2
    Registered User (TNT)'s Avatar
    Join Date
    Aug 2001
    Location
    UK
    Posts
    339
    Hi,

    Not sure if this is what you want but give it ago:

    GetClassName();


    Info:

    int GetClassName(
    HWND hWnd, // handle of window
    LPTSTR lpClassName, // address of buffer for class name
    int nMaxCount // size of buffer, in characters
    );



    Thanks
    TNT
    TNT
    You Can Stop Me, But You Cant Stop Us All

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 0
    Last Post: 03-20-2008, 08:59 AM
  2. Dynamic array of pointers
    By csisz3r in forum C Programming
    Replies: 8
    Last Post: 09-25-2005, 03:06 PM
  3. very weird .h problem
    By royuco77 in forum C++ Programming
    Replies: 1
    Last Post: 09-11-2005, 08:55 AM
  4. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-30-2005, 12:21 AM
  5. pointer to array of objects of struct
    By undisputed007 in forum C++ Programming
    Replies: 12
    Last Post: 03-02-2004, 04:49 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21