다음을 통해 공유


CWinApp::m_nCmdShow

해당 하는 nCmdShow 매개 변수를 전달 하려면 windows WinMain.

int m_nCmdShow;

설명

전달 해야 m_nCmdShow 인수로 호출 하면 CWnd::ShowWindow 응용 프로그램의 주 창에 대 한.m_nCmdShow형식의 public 변수는 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();

요구 사항

헤더: afxwin.h

참고 항목

참조

CWinApp 클래스

계층 구조 차트