41 lines
919 B
C++
41 lines
919 B
C++
#include "stdafx.h"
|
|
#include "OXWinApp.h"
|
|
#include "OXDocMgr.h"
|
|
#include "OXPrvDlg.h"
|
|
|
|
#ifdef _DEBUG
|
|
#undef THIS_FILE
|
|
static char BASED_CODE THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// COXWinApp
|
|
|
|
|
|
IMPLEMENT_DYNAMIC(COXWinApp, CWinApp)
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
// COXWinApp construction
|
|
|
|
COXWinApp::COXWinApp()
|
|
{
|
|
}
|
|
|
|
void COXWinApp::AddDocTemplate(CDocTemplate* pTemplate)
|
|
{
|
|
if (m_pDocManager == NULL)
|
|
m_pDocManager = new COXDocManager;
|
|
m_pDocManager->AddDocTemplate(pTemplate);
|
|
}
|
|
|
|
CFileDialog* COXWinApp::NewFileDialog(BOOL bOpenFileDialog, DWORD lFlags)
|
|
{
|
|
UNREFERENCED_PARAMETER(lFlags);
|
|
// this function is called by COXDocManager
|
|
// to get a pointer to save and/or open dialog
|
|
// here we can instantiate dialog object of user-defined style
|
|
return new CFileDialog(bOpenFileDialog);
|
|
}
|
|
|
|
|