MenuPage.cpp
上传用户:shouhua
上传日期:2014-12-06
资源大小:5685k
文件大小:1k
- // MenuPage.cpp : implementation file
- //
- #include "stdafx.h"
- #include "AntiEvilTools.h"
- #include "MenuPage.h"
- #ifdef _DEBUG
- #define new DEBUG_NEW
- #undef THIS_FILE
- static char THIS_FILE[] = __FILE__;
- #endif
- /////////////////////////////////////////////////////////////////////////////
- // CMenuPage property page
- IMPLEMENT_DYNCREATE(CMenuPage, CPropertyPage)
- CMenuPage::CMenuPage() : CPropertyPage(CMenuPage::IDD)
- {
- //{{AFX_DATA_INIT(CMenuPage)
- // NOTE: the ClassWizard will add member initialization here
- //}}AFX_DATA_INIT
- }
- CMenuPage::~CMenuPage()
- {
- }
- void CMenuPage::DoDataExchange(CDataExchange* pDX)
- {
- CPropertyPage::DoDataExchange(pDX);
- //{{AFX_DATA_MAP(CMenuPage)
- // NOTE: the ClassWizard will add DDX and DDV calls here
- //}}AFX_DATA_MAP
- }
- BEGIN_MESSAGE_MAP(CMenuPage, CPropertyPage)
- //{{AFX_MSG_MAP(CMenuPage)
- ON_WM_PAINT()
- //}}AFX_MSG_MAP
- END_MESSAGE_MAP()
- /////////////////////////////////////////////////////////////////////////////
- // CMenuPage message handlers
- void CMenuPage::OnPaint()
- {
- CPaintDC dc(this); // device context for painting
- CBitmap bmp;
- bmp.LoadBitmap(IDB_BITMAP1);
- BITMAP bmpInfo;
- bmp.GetBitmap(&bmpInfo);
- CDC dcMemory;
- dcMemory.CreateCompatibleDC(&dc);
- CBitmap *pOldBmp=dcMemory.SelectObject(&bmp);
- dc.BitBlt(0,0,bmpInfo.bmWidth,bmpInfo.bmHeight,&dcMemory,0,0,SRCCOPY);
- dcMemory.SelectObject(pOldBmp);
- // Do not call CPropertyPage::OnPaint() for painting messages
- }