学习MFC遇到的问题
是《深入浅出MFC》上面的一个例子,但是有些地方没有看懂,下面划红线的地方
class CWinApp : public CWinThread{ DECLARE_DYNAMIC(CWinApp)public: CWinApp* m_pCurrentWinApp; CWnd* m_pMainWnd;public: CWinApp::CWinApp() { m_pCurrentWinApp = this; } CWinApp::~CWinApp() { } virtual BOOL InitApplication() { return TRUE; } virtual BOOL InitInstance() { return TRUE; } virtual int Run() { return CWinThread::Run(); }};class CDocument : public CCmdTarget{ DECLARE_DYNAMIC(CDocument)[color=#FF0000]这个东西是什么用法呀?[/color]public: CDocument::CDocument() { } CDocument::~CDocument() { }};