MFC
-
확장자 지원MFC 2008. 12. 6. 01:12
BOOL CTry01App::InitInstance() { ... pDocTemplate = new CSingleDocTemplate( IDR_MAINFRAME, RUNTIME_CLASS(CTry01Doc), RUNTIME_CLASS(CMainFrame), // main SDI frame window RUNTIME_CLASS(CTry01View)); AddDocTemplate(pDocTemplate); // { // Enable DDE Execute open EnableShellOpen(); RegisterShellFileTypes(TRUE); // } // Parse command line for standard shell commands, DDE, file open CCommandLineInfo cm..