Skip to content

Latest commit

 

History

History
53 lines (38 loc) · 1.29 KB

ShowWindow.md

File metadata and controls

53 lines (38 loc) · 1.29 KB

Home

Function name : ShowWindow

Group: Window - Library: user32


The ShowWindow function sets the show state for the specified window.


Code examples:

Creating a window using CreateWindowEx function
Saying "Hello World!" with VFP and WinAPI
Splash Screen for the VFP application
How to block the ALT+TAB shortcut (WinXP)
Creating a console window for Visual FoxPro application
Placing On-screen Alert on top of all windows

Declaration:

BOOL ShowWindow(
  HWND hWnd,     // handle to window
  int nCmdShow   // show state
);  

FoxPro declaration:

DECLARE INTEGER ShowWindow IN user32;
    INTEGER hwnd,;
    INTEGER nCmdShow  

Parameters:

hWnd [in] Handle to the window

nCmdShow [in] Specifies how the window is to be shown


Return value:

If the window was previously visible, the return value is nonzero. If the window was previously hidden, the return value is zero