Поделиться через


CWinApp::m_nCmdShow

Соответствует параметру nCmdShow передаваемые в WinMain Windows.

int m_nCmdShow;

Заметки

Необходимо передать m_nCmdShow как аргумент при вызове CWnd::ShowWindow для главного окна приложения.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

См. также

Ссылки

Класс CWinApp

Диаграмма иерархии