Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.86 KB

GetWindow.md

File metadata and controls

57 lines (43 loc) · 1.86 KB

Home

Function name : GetWindow

Group: Window - Library: user32


The GetWindow function retrieves the handle of a window that has the specified relationship to the specified window.


Code examples:

Listing child windows for the Windows desktop
Simple Window Viewer
Retrieving top-child window for the VFP form
Terminating all running applications from a VFP program
Minimizing all running applications
Scanning the hierarchy of child windows down from the main VFP window
Extended MessageBox Class
How to change the name and the size of the font in the MessageBox dialog
Customizing the frame of top-level form: removing the standard frame (VFP9, Vista)
Obtaining names and positions for shortcuts located on the Windows Desktop
Moving shortcut to a specified position on the Windows Desktop
GDI+: custom control, base class

Declaration:

HWND GetWindow(
    HWND  hWnd,	// handle of original window
    UINT  uCmd 	// relationship flag
   );  

FoxPro declaration:

DECLARE INTEGER GetWindow IN user32;
	INTEGER hwnd,;
	INTEGER wFlag  

Parameters:

hWnd Identifies a window

uCmd Specifies the relationship between the specified window and the window whose handle is to be retrieved


Return value:

If the function succeeds, the return value is a window handle