 |
GetClassInfo ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The GetClassInfo function retrieves information about a window class. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| 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. |
 |
 |
| Usage: |
 |
PROCEDURE IsClassRegistered() As Boolean
LOCAL cBuffer, nResult
cBuffer = REPLICATE(CHR(0), 128)
nResult = GetClassInfo( GetModuleHandle(0),;
THIS.ClassName, @cBuffer )
RETURN m.nResult <> 0
|
 |
 |
| My comment: |
 |
| Check GetClassLong function as an alternative way to retrieve most class window parameters. |
 |
 |
| Word Index links for the GetClassInfo : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-12-02 15:20:24 | | Modified: | 2011-09-16 18:47:18 | Visited in last 7 days: 17 |