Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.67 KB

File metadata and controls

59 lines (41 loc) · 1.67 KB

Home

Function name : GetClassInfo

Group: Window Class - Library: user32


The GetClassInfo function retrieves information about a window class.


Code examples:

Retrieving Window Class information for the VFP window
Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.
Displaying dimmed window behind VFP top-level form

Declaration:

BOOL GetClassInfo(
  HINSTANCE hInstance,    // handle to application instance
  LPCTSTR lpClassName,    // class name
  LPWNDCLASS lpWndClass   // class data
);  

FoxPro declaration:

DECLARE INTEGER GetClassInfo IN user32;
	INTEGER  hInstance,;
	STRING   lpClassName,;
	STRING @ lpWndClass  

Parameters:

hInstance [in] Handle to the instance of the application that created the class. To retrieve information about classes defined by the system (such as buttons or list boxes), set this parameter to NULL.

lpClassName [in] Pointer to a null-terminated string containing the class name.

lpWndClass [out] Pointer to a WNDCLASS structure that receives the information about the class.


Return value:

If the function finds a matching class and successfully copies the data, the return value is nonzero. If the function fails, the return value is zero.


Comments:

Check GetClassLong function as an alternative way to retrieve most class window parameters.