//afxwin.cpp
#include "afxwin.h"
//这里导入"CMyApp.h"是为了使用 theApp 全局变量以使用改造版的 AfxGetApp()
#include "My.h"
extern CMyApp theApp;
//CCmdTarget类方法定义
IMPLEMENT_DYNAMIC(CCmdTarget,CObject)
CCmdTarget::CCmdTarget()
{
cout<<"CCmdTarget Constructor."<<endl;
}
//CDocument类方法定义
IMPLEMENT_DYNAMIC(CDocument,CCmdTarget)
CDocument::CDocument()
{
cout<<"CDocument Constructor."<<endl;
}
//CWnd类方法定义
IMPLEMENT_DYNAMIC(CWnd,CCmdTarget)
CWnd::CWnd()
{
cout<<"CWnd Constructor."<<endl;
}
BOOL CWnd::Create()
{
cout<<"CWnd::Create()."<<endl;
return TRUE;
}
BOOL CWnd::CreateEx()
{
cout<<"CWnd::CreateEx()."<<endl;
return TRUE;
}
BOOL CWnd::PreCreateWindow()
{
cout<<"CWnd::PreCreateWindow()."<<endl;
return TRUE;
}
//CFrameWnd类方法定义
IMPLEMENT_DYNAMIC(CFrameWnd,CWnd)
CFrameWnd::CFrameWnd()
{
cout<<"CFrameWnd Constructor."<<endl;
}
//CView类方法定义
IMPLEMENT_DYNAMIC(CView,CWnd)
CView::CView()
{
cout<<"CView Constructor."<<endl;
}
//CWinThread类方法定义
IMPLEMENT_DYNAMIC(CWinThread,CCmdTarget)
CWinThread::CWinThread()
{
cout<<"CWinThread Constructor."<<endl;
}
BOOL CWinThread::InitInstance()
{
cout<<"CWinThread::InitInstance()."<<endl;
return TRUE;
}
int CWinThread::Run()
{
cout<<"CWinThread::Run()."<<endl;
return 1;
}
//CWinApp类方法定义
IMPLEMENT_DYNAMIC(CWinApp,CWinThread)
CWinApp::CWinApp()
{
cout<<"CWinApp Constructor."<<endl;
}
BOOL CWinApp::InitInstance()
{
cout<<"CWinApp::InitInstance()."<<endl;
return TRUE;
}
BOOL CWinApp::InitApplication()
{
cout<<"CWinApp::InitApplication()."<<endl;
return TRUE;
}
int CWinApp::Run()
{
cout<<"CWinApp::Run()."<<endl;
return 1;
}
MFC RTTI代码(博客中使用资源)
5星 · 超过95%的资源 需积分: 9 140 浏览量
2016-06-20
00:35:45
上传
评论
收藏 5KB RAR 举报
哈士奇超帅
- 粉丝: 146
- 资源: 13