Thread: getting control type at runtime

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