Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ShowWindowAsync function

Sets the show state of a window without waiting for the operation to complete.

Syntax


BOOL WINAPI ShowWindowAsync(
  _In_ HWND hWnd,
  _In_ int  nCmdShow
);

Parameters

hWnd [in]

Type: HWND

A handle to the window.

nCmdShow [in]

Type: int

Controls how the window is to be shown. For a list of possible values, see the description of the ShowWindow function.

Return value

Type:

Type: BOOL

If the operation was successfully started, the return value is nonzero.

Remarks

This function posts a show-window event to the message queue of the given window. An application can use this function to avoid becoming nonresponsive while waiting for a nonresponsive application to finish processing a show-window event.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winuser.h (include Windows.h)

Library

User32.lib

DLL

User32.dll

See also

Reference
ShowWindow
Conceptual
Windows

 

 

Show:
© 2017 Microsoft