 |
GetClassName ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
The GetClassName function retrieves the name of the class to which the specified window belongs. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
int GetClassName(
HWND hWnd, // handle to window
LPTSTR lpClassName, // class name
int nMaxCount // size of class name buffer
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GetClassName IN user32;
INTEGER hWnd,;
STRING @ lpClassName,;
INTEGER nMaxCount
|
 |
 |
 |
| Parameters: |
 |
hWnd
[in] Handle to the window and, indirectly, the class to which the window belongs.
lpClassName
[out] Pointer to the buffer that is to receive the class name string.
nMaxCount
[in] Specifies the length, in TCHARs, of the buffer pointed to by the lpClassName parameter. |
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is the number of TCHARs copied to the specified buffer. If the function fails, the return value is zero. |
 |
 |
| Usage: |
 |
cBuffer = Repli(Chr(0), 250)
nBufsize = GetClassName(hWindow, @cBuffer, Len(cBuffer))
cClassName = SUBSTR(cBuffer, 1, nBufsize)
|
 |
 |
| Word Index links for the GetClassName : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2001-12-02 15:22:53 | | Modified: | 2007-06-11 19:56:48 | Visited in last 7 days: 29 |