#include "afxwin.h"class CMyApp:public CWinApp
{
public:
virtual BOOL InitInstance();
};CMyApp theApp;class CMyFrame:public CFrameWnd
{
public:
CMyFrame();
protected:
afx_msg void OnPaint();
DECLARE_MESSAGE_MAP();
};BOOL CMyApp::InitInstance()
{
m_pMainWnd = new CMyFrame();
m_pMainWnd->ShowWindow(m_nCmdShow);
m_pMainWnd->UpdateWindow();
return TRUE;
}CMyFrame::CMyFrame()
{
Create(NULL,"welcome to my web!!!");
}void CMyFrame::OnPaint()
{
  CPaintDC dc(this);
dc.TextOut(20,20,"hello word!!!");
}BEGIN_MESSAGE_MAP(CMyFrame,CFrameWnd)
    ON_WM_LBUTTONDOWN()
    ON_WM_PAINT()
END_MESSAGE_MAP()
在上面的代码中为什么需要下面的这行代码才可以显示"hello word!!!" 字样。请大家帮我解释解释,谢谢了
BEGIN_MESSAGE_MAP(CMyFrame,CFrameWnd)
    ON_WM_LBUTTONDOWN()
    ON_WM_PAINT()
END_MESSAGE_MAP()