CWinApp::m_nCmdShow

Entspricht dem nCmdShow-Parameter, der von Windows für WinMain übergeben wird.

int m_nCmdShow;

Hinweise

Sie sollten m_nCmdShow als Argument übergeben, wenn Sie CWnd::ShowWindow für das Hauptfenster der Anwendung aufrufen.m_nCmdShow ist eine öffentliche Variable des Typs int.

Beispiel

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

Anforderungen

Header: afxwin.h

Siehe auch

Referenz

CWinApp-Klasse

Hierarchien-Diagramm