CWinApp::m_nCmdShow
对应于Windows传递的 nCmdShow 参数传递给 WinMain。
int m_nCmdShow;
备注
调用应用程序的主窗口时,CWnd::ShowWindow 应通过 m_nCmdShow 作为参数。 m_nCmdShow 是类型 int的公共变量。
示例
// The following code fragment is taken from CMyApp::InitInstance.
// CMyApp is derived from CWinApp.
// The main window has been initialized, so show and update it
// using the nCmdShow parameter passed to the application when it
// was first launched.
// pMainFrame is the main MDI frame window of our app and is derived
// from CMDIFrameWnd.
pMainFrame->ShowWindow(m_nCmdShow);
pMainFrame->UpdateWindow();
要求
Header: afxwin.h