CloseWindow 函式 (winuser.h)

將 (最小化,但不會) 指定的窗口終結。

語法

BOOL CloseWindow(
  [in] HWND hWnd
);

參數

[in] hWnd

類型: HWND

要最小化之視窗的句柄。

傳回值

類型: BOOL

如果函式成功,則傳回非零的值。

如果此函式失敗,則傳回值為零。 若要取得擴充的錯誤資訊,請呼叫 GetLastError

備註

若要終結視窗,應用程式必須使用 DestroyWindow 函式。

規格需求

需求
最低支援的用戶端 Windows 2000 專業版 [僅限傳統型應用程式]
最低支援的伺服器 Windows 2000 Server [僅限傳統型應用程式]
目標平台 Windows
標頭 winuser.h (包括 Windows.h)
程式庫 User32.lib
Dll User32.dll
API 集合 ext-ms-win-ntuser-window-l1-1-4 (於 Windows 10 10.0.14393 版)

另請參閱

ArrangeIconicWindows

概念

DestroyWindow

IsIconic

OpenIcon

參考

Windows