Name
ShowWindow
Synopsis
Determines how the window is displayed:
Public Declare Function ShowWindow Lib "user32" _ (ByVal hwnd As Long, ByVal nCmdShow As Long) As Long
Parameters
-
hwnd Window handle
-
nCmdShow Specifies how the window is displayed:
-
SW_FORCEMINIMIZE Displays a minimized window even if the thread that owns the window is hung.
-
SW_HIDE Hides the window and activates another window.
-
SW_MAXIMIZE Displays a maximized window.
-
SW_MINIMIZE Displays a minimized window.
-
SW_RESTORE Displays a window in its restored state.
-
SW_SHOW Activates a window.
-
SW_SHOWMAXIMIZED Activates and maximizes the window.
-
SW_SHOWMINIMIZED Activates and minimizes the window.
-
SW_SHOWMINNOACTIVE Displays a minimized window, but does not activate it.
-
SW_SHOWNA Displays a window, but does not activate it.
-
SW_SHOWNORMAL Activates and displays a window. If the window is minimized or maximized, it is first restored.
-
SW_SHOWNOACTIVATE Same as
SW_SHOWNORMAL, but the window is not activated.
-
Return Value
Returns if the window was previously hidden. Returns nonzero if the window was previously visible.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access