Using Win32 functions in Visual FoxPro Image Gallery
Window Class
Code examples:
Retrieving long values associated with the class of the VFP window
..msdn    Add comment     W32 Constants      Translate this page
Retrieves the specified 32-bit (long) value from the WNDCLASSEX structure associated with the specified window.
Code examples:
Retrieving long values associated with the class of the VFP window
DWORD GetClassLong(
  HWND hWnd,  // handle to window
  int nIndex  // offset of value to retrieve
FoxPro declaration:
DECLARE INTEGER GetClassLong IN user32;
    INTEGER hWnd,;
    INTEGER nIdx
[in] Handle to the window and, indirectly, the class to which the window belongs.

[in] Specifies the 32-bit value to retrieve.

Return value:
If the function succeeds, the return value is the requested 32-bit value. If the function fails, the return value is zero.
My comment:
Within FoxPro this function is more handy comparing to the GetClassInfo and GetClassInfoEx for retrieving most of the window class propeties.

Also this function completely supersedes the GetWindowWord function, which is provided only for compatibility with 16-bit versions of Windows.
Word Index links for the GetClassLong :
Translate this page:
  Spanish    Portuguese    German    French    Italian offers instant, free translations of text or web pages.
Created: 2001-12-02 18:08:15
Modified: 2001-12-02 18:18:07
Visited in last 7 days: 61
User Contributed Notes:
There are no notes on this subject.

Copyright 2001-2018 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.39), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (
15 sec.Function: 'CloseEventLog'
33 sec.Function: 'CryptGetDefaultProvider'
47 sec.Example: 'Testing serial ports'
1.08 min.Function: 'GdipDisposeImageAttributes'
1.32 min.Function: 'RegisterServiceProcess'
1.63 min.Function: 'GdipDrawString'
1.9 min.Function: 'LockFile'
2.22 min.Function: 'LsaFreeMemory'
2.48 min.
Function group: 'National Language Support'
2.8 min.
Function group: 'Window Procedure'
Advertise here!