#include <afxwin.h>
#include<windows.h>
#include"resource.h"
class CMyApp : public CWinApp
{
public:
    virtual BOOL InitInstance ();
};
class CMainWindow : public CFrameWnd
{
public:
CMainWindow ();
protected:
    afx_msg void OnPaint ();
        afx_msg int OnCreate(LPCREATESTRUCT);
        afx_msg void OnLButtonDown(UINT,CPoint);
afx_msg void OnLButtonUp(UINT,CPoint);
        afx_msg void OnRButtonDown(UINT,CPoint);    DECLARE_MESSAGE_MAP ()
public:
afx_msg void OnBaocun();
};
CMyApp myApp;
BOOL CMyApp::InitInstance ()
{
    m_pMainWnd = new CMainWindow;
    m_pMainWnd->ShowWindow (m_nCmdShow);
    m_pMainWnd->UpdateWindow ();
    return TRUE;
}
BEGIN_MESSAGE_MAP (CMainWindow, CFrameWnd)
        ON_WM_CREATE()
ON_WM_PAINT ()
        ON_WM_LBUTTONDOWN()
ON_WM_LBUTTONUP()
        ON_WM_RBUTTONDOWN()
ON_COMMAND(IDM_BAOCUN, &CMainWindow::OnBaocun)
END_MESSAGE_MAP()
CMainWindow::CMainWindow ()
{        
    Create (NULL, _T ("The Hello Application"),WS_OVERLAPPEDWINDOW | WS_VSCROLL );
} void CMainWindow::OnPaint ()
{
}
void CMainWindow::OnLButtonDown (UINT,CPoint a)
{
}void CMainWindow::OnLButtonUp (UINT flags,CPoint n)
{
}
void CMainWindow::OnRButtonDown (UINT,CPoint a)
{
}
int CMainWindow::OnCreate (LPCREATESTRUCT)
{
CFrameWnd::LoadFrame(IDR_MENU1);
        return 0;
}void CMainWindow::OnBaocun()
{
// TODO: 在此添加命令处理程序代码
MessageBox(L"");
}