Using Win32 functions in Visual FoxPro Image Gallery
Window Class
..msdn
GetClassInfo
GetClassInfoEx
GetClassLong
GetClassName
GetWindowLong
RegisterClassEx
SetWindowLong
UnregisterClass
Code examples:
Drawing icons associated with the VFP main window
Listing child windows for the Windows desktop
Retrieving information about the main VFP window
Retrieving Window Class information for the VFP window
Simple Window Viewer
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:
Drawing icons associated with the VFP main window
Listing child windows for the Windows desktop
Simple Window Viewer
Retrieving Window Class information for the VFP window
Retrieving information about the main VFP 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.
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:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-02 15:22:53
Modified: 2007-06-11 19:56:48
Visited in last 7 days: 43
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.80.132.10)
13 sec.Function: 'ClosePrinter'
26 sec.Function: 'GetAclInformation'
40 sec.Function: 'closesocket'
54 sec.Function: 'GetDeviceDriverBaseName'
1.12 min.Function: 'EndTask'
1.3 min.Function: 'CeOidGetInfoEx'
1.52 min.Function: 'CeRegCreateKeyEx'
1.73 min.Function: 'CoTaskMemFree'
1.92 min.Function: 'GetDlgCtrlID'
2.12 min.Function: 'FtpDeleteFile'
Google
Advertise here!