ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 확장자 지원
    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 cmdInfo;
        ParseCommandLine(cmdInfo);
    ...
        // The one and only window has been initialized, so show and update it.
        m_pMainWnd->ShowWindow(SW_SHOW);
        m_pMainWnd->UpdateWindow();
    // {
        // Enable drag/drop open
        m_pMainWnd->DragAcceptFiles();
    // }
        return TRUE;
    }


    STRINGTABLE PRELOAD DISCARDABLE
    BEGIN
        IDR_MAINFRAME           "Try01\n\nTry01\nTry01 파일 (*.txt)\n.txt\nTry01.Document\nTry01 Document"

    END

Designed by Tistory.