Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 907 Bytes

CloseWindow.md

File metadata and controls

47 lines (31 loc) · 907 Bytes

Home

Function name : CloseWindow

Group: Window - Library: user32


The CloseWindow function minimizes (but does not destroy) the specified window.


Code examples:

Minimizing all running applications

Declaration:

BOOL CloseWindow(
  HWND hWnd   // handle to window to minimize
);  

FoxPro declaration:

DECLARE INTEGER CloseWindow IN user32;
	INTEGER hWnd  

Parameters:

hWnd [in] Handle to the window to be minimized.


Return value:

If the function succeeds, the return value is nonzero.


Comments:

It is an example of misleading name. To destroy a window, an application must use the DestroyWindow function.