Declare Function ShowWindow Lib "user32.dll" (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Platforms: Win 32s, Win 95/98, Win NT
ShowWindow shows (or hides) a window in a certain manner. For example, the function can minimize, maximize, or restore a given window. The function returns 0 if the window had been hidden before the call, or a non-zero value if it had been visible.
Example:
' Maximize the window Form1. Before doing so, make sure
' that the window is visible.
Dim retval As Long ' return value
retval = ShowWindow(Form1.hWnd, SW_SHOW) ' display the window if it's hidden
retval = ShowWindow(Form1.hWnd, SW_MAXIMIZE) ' maximize the window
See Also: IsIconic, IsZoomed
Category: Windows
Go back to the alphabetical Function listing.
Go back to the Reference section index.
This page is copyright © 2000 Paul Kuliniewicz. Copyright Information.
Go back to the Windows API Guide home page.
E-mail: vbapi@vbapi.com Send Encrypted E-Mail
This page is at http://www.vbapi.com/ref/s/showwindow.html