Udostępnij za pośrednictwem


CWinApp::m_nCmdShow

Odpowiada nCmdShow parametr przekazywany przez system Windows do WinMain.

int m_nCmdShow;

Uwagi

Należy przekazać m_nCmdShow jako argumentu podczas wywołania CWnd::ShowWindow do głównego okna aplikacji.m_nCmdShowpubliczne zmiennej typu jest int.

Przykład

   // 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();

Wymagania

Nagłówek: afxwin.h

Zobacz też

Informacje

Klasa CWinApp

Wykres hierarchii