VC++ MFC的ActiveX窗口处理相关知识
//限制控件窗口大小
if(rcBounds.Height()!=25 || rcBounds.Width()!=25)
{
//SetControlSize(25,25);//显示位图
}
---------------------------------------------------------------------
//向控件窗口里帖图
void CVvvCtrl::OnDraw(
CDC* pdc, const CRect& rcBounds, const CRect& rcInvalid)
{
CBitmap bitmap;
CBitmap* pOldBitmap;
CDC MemDC;
MemDC.CreateCompatibleDC(pdc);
bitmap.LoadBitmap(IDB_BITMAP1);//图片的ID
pOldBitmap=MemDC.SelectObject(&bitmap);
pdc->BitBlt(0,0,50,50,&MemDC,0,0,SRCCOPY);
MemDC.SelectObject(pOldBitmap);
}
补充:软件开发 , Vc ,