Using Win32 functions in Visual FoxPro Image Gallery
Window Class
..msdn
GetClassInfo
GetClassInfoEx
GetClassLong
GetClassName
GetWindowLong
RegisterClassEx
SetWindowLong
UnregisterClass
Code examples:
Displaying dimmed window behind VFP top-level form
Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.
Retrieving Window Class information for the VFP window
GetClassInfo
..msdn    Add comment     W32 Constants      Translate this page
The GetClassInfo function retrieves information about a window class.
Code examples:
Displaying dimmed window behind VFP top-level form
Retrieving Window Class information for the VFP window
Drawing cursors for the classes defined by the system (preregistered): BUTTON, EDIT, LISTBOX etc.
Declaration:
BOOL GetClassInfo(
  HINSTANCE hInstance,    // handle to application instance
  LPCTSTR lpClassName,    // class name
  LPWNDCLASS lpWndClass   // class data
);
FoxPro declaration:
DECLARE INTEGER GetClassInfo IN user32;
    INTEGER  hInstance,;
    STRING   lpClassName,;
    STRING @ lpWndClass
Parameters:
hInstance
[in] Handle to the instance of the application that created the class. To retrieve information about classes defined by the system (such as buttons or list boxes), set this parameter to NULL.

lpClassName
[in] Pointer to a null-terminated string containing the class name.

lpWndClass
[out] Pointer to a WNDCLASS structure that receives the information about the class.
Return value:
If the function finds a matching class and successfully copies the data, the return value is nonzero. If the function fails, the return value is zero.
Usage:
PROCEDURE IsClassRegistered() As Boolean
    LOCAL cBuffer, nResult
    cBuffer = REPLICATE(CHR(0), 128)

    nResult = GetClassInfo( GetModuleHandle(0),;
        THIS.ClassName, @cBuffer )

RETURN m.nResult <> 0
My comment:
Check GetClassLong function as an alternative way to retrieve most class window parameters.
Word Index links for the GetClassInfo :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2001-12-02 15:20:24
Modified: 2011-09-16 18:47:18
Visited in last 7 days: 11
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Google
Advertise here!