Using Win32 functions in Visual FoxPro Image Gallery
Window Class
..msdn
GetClassInfo
GetClassInfoEx
GetClassLong
GetClassName
GetWindowLong
RegisterClassEx
SetWindowLong
UnregisterClass
Code examples:
Retrieving long values associated with the class of the VFP window
GetClassLong
..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
Declaration:
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
Parameters:
hWnd
[in] Handle to the window and, indirectly, the class to which the window belongs.

nIndex
[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  
FreeTranslation.com 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: 9
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.92.141.211)
13 sec.Function: 'GdipDeleteBrush'
27 sec.Function: 'CreateProcess'
38 sec.Function: 'CeRegQueryInfoKey'
53 sec.Function: 'SetupCloseInfFile'
1.08 min.Function: 'ClearEventLog'
1.32 min.Function: 'GetObjectType'
1.53 min.Function: 'CopyMemory'
1.72 min.Function: 'GdipSetSmoothingMode'
1.88 min.Function: 'GetCurrentHwProfile'
2.08 min.Function: 'MQPurgeQueue'
Google
Advertise here!