在自对话框里添加消息映射 OnPaint void CEasyList::OnPaint(){ CPaintDC dc(this);DrawBitmap( bitmap , dc.m_hDC ,0,0,1000,1000 ) ;} void DrawBitmap(HBITMAP m_bitmap,HDC hScrDC,int x=0,int y=0,int width=100,int height=100){ HDC hMemDC=CreateCompatibleDC(hScrDC);...
void CAboutDlg::OnPaint() { CPaintDC dc(this); // device context for painting CDC* pDC=&dc; //CBitmap m_cBitmap; //BITMAP m_sBITMAP; //BOOL m_isBmpLoaded; if(!m_isBmpLoaded) { m_cBitmap.LoadBitmap(IDB_BITMAP1); m_cBitmap.GetBitmap (&m_sBITMAP); m...