调用
CClientDC dc(this);
CBitmap bmp;
bmp.LoadBitmap(IDB_BITMAP1);/* IDB_BITMAP1 */
BITMAP bm;
bmp.GetBitmap (&bm);
drawTransparent (bmp,0,0,bm.bmWidth ,bm.bmHeight ,0,0,&dc,NULL);
bmp.DeleteObject ();
调用
CClientDC dc(this);
CBitmap bmp;
bmp.LoadBitmap(IDB_BITMAP1);/* IDB_BITMAP1 */
BITMAP bm;
bmp.GetBitmap (&bm);
drawTransparent (bmp,0,0,bm.bmWidth ,bm.bmHeight ,0,0,&dc,NULL);
bmp.DeleteObject ();