Minimizing a Window

Article Tools

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

API syntax : BOOL CloseWindow( HWND hWnd );

Parameters :

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

Return Value :

clip_image001[1] If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Extern.Declare micInteger, "CloseWindow", "user32.dll", "CloseWindow", micHWnd
hwnd = Browser( "B" ).GetROProperty( "hwnd" )
If Not CBool( Extern.IsIconic( hwnd ) ) Then
   bRetval = Extern.CloseWindow( hwnd )
End If
Previous postSwitching Focus between Windows Next postForcibly Close a Specified Window

Related Posts

Post Your Comment

You must be logged in to post a comment.