//Hello.h
#pragma once
#include <afxwin.h>
//MFC应用程序的核心就是基于CWinApp类的应用程序对象
//CWinApp提供了消息循环来检索消息并将消息调度给应用程序的窗口
class CMyApp:public CWindApp{
public:
virtual BOOL InitInstance();
};
class CMainWindow:public CFrameWnd{
public:
CMainWindow();
protected:
afx_msg void OnPaint();
DECLEAR_MESSAGE_MAP();
};
//Hello.h
#pragma once
#include <afxwin.h