![]() |
#2
yuccn2013-03-06 17:02
|
class CTableView : public CTabView
CTableView::OnDraw(CDC* pDC)
{
CBitmap bitmap;
bitmap.LoadBitmap(IDD_BG);
CDC MenDC;
MenDC.CreateCompatibleDC(pDC);
MenDC.SelectObject()&bitmap;
CRect rect;
GetClientRect(rect);
pDc->BitBlt(0,0,rect.Width(),rect.Heigh(),&MenDC,0,0,SRCCOPT);
MenDC.DeleteDC();
}
我想实现在在Tab的视图区域的背景为一个图片,但是没有效果,求大神帮助!