共用方式為


CWindow::ShowWindow

設定視窗的顯示狀態。

BOOL ShowWindow(
   int nCmdShow 
) throw();

備註

請參閱在 Windows SDK的 ShowWindow

範例

//The following example attaches an HWND to the CWindow object and 
//calls CWindow::ShowWindow() to show the window in its maximized state

CWindow myWindow;
myWindow.Attach(hWnd);
myWindow.ShowWindow(SW_SHOWMAXIMIZED);

需求

Header: atlwin.h

請參閱

參考

CWindow 類別