Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.54 KB

File metadata and controls

55 lines (40 loc) · 1.54 KB

Home

Function name : GetClassName

Group: Window Class - Library: user32


The GetClassName function retrieves the name of the class to which the specified window belongs.


Code examples:

Listing child windows for the Windows desktop
Simple Window Viewer
Retrieving information about the main VFP window
Retrieving Window Class information for the VFP window
Drawing icons associated with the VFP main window

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.