Login   /   Register

Minimizing a window

Rate this article
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...
April 1st, 2008 by daniva

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

Posted in Windowing

2 Responses to “Minimizing a window”

  1. tcwmj Says:

    [-]

    IsIconic hasn’t be declared

  2. daniva Says:

    [-]

    ooopssss

    Extern.Declare micInteger, “IsIconic”, “user32.dll”, “IsIconic”, micHWnd

Leave a Reply

You must be logged in to post a comment.

This article was viewed 343 times