Compartilhar via


CWinApp::m_nCmdShow

Corresponde ao parâmetro de nCmdShow passado pelo windows a WinMain.

int m_nCmdShow;

Comentários

Você deve passar m_nCmdShow como um argumento quando você chama CWnd::ShowWindow para a janela principal do aplicativo. m_nCmdShow é uma variável pública do tipo int.

Exemplo

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

Requisitos

Cabeçalho: afxwin.h

Consulte também

Referência

Classe de CWinApp

Gráfico da hierarquia