RichEdit20.cpp
上传用户:zhoucj12
上传日期:2007-01-02
资源大小:15k
文件大小:1k
- #include "StdAfx.h"
- #include "RichEdit20.h"
- #include "MainDialog.h"
- #include "RichEditCtrlEx.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- BEGIN_MESSAGE_MAP( CRichEdit20App, CWinApp )
- //{{AFX_MSG_MAP( CRichEdit20App )
- //}}AFX_MSG
- END_MESSAGE_MAP()
- CRichEdit20App::CRichEdit20App()
- {
- }
- /////////////////////////////////////////////////////////////////////////////
- // The one and only CRichEdit20App object
- /////////////////////////////////////////////////////////////////////////////
- CRichEdit20App theApp ;
- BOOL CRichEdit20App::InitInstance()
- {
- AfxInitRichEditEx() ;
- AfxEnableControlContainer();
- #ifdef _AFXDLL
- Enable3dControls(); // Call this when using MFC in a shared DLL
- #else
- Enable3dControlsStatic(); // Call this when linking to MFC statically
- #endif
- CMainDialog l_Dialog ;
-
- m_pMainWnd = &l_Dialog ;
- l_Dialog.DoModal() ;
- return FALSE ;
- }