Study/MFC

MDI 프로그램에서 처음에 새창 띄우지 않기

kkokkal 2005. 4. 6. 14:00
App 클래스의 InitInstance() 함수 중간 부분에 다음과 같은 부분을 찾는다.

// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);

이는 command line 인자에 대한 처리를 위한 것인데, 다음과 같이 한줄을 추가한다.

// Parse command line for standard shell commands, DDE, file open
CCommandLineInfo cmdInfo;
ParseCommandLine(cmdInfo);
cmdInfo.m_nShellCommand = CCommandLineInfo::FileNothing;