正在加载图片...
在窗口中贴图 1、创建位图 2、创建兼容DC CDC coMpatible CBitmap bitmap dccompatible. Create CompatibleDC(pDO) /bitmap. LoadBitmap(IDB_BITMAP1 3、将位图选到兼容DC中 4、将兼容DC中的位图贴到当前DC中。 dc CompatibleSelectObject(&bitmap PDC->BitBlt(rectleft, rect. top, rect Width a rect. Heighto, &dcCompatible, 0, 0, SRCCOPY 兼容DC 当前DC 位图 tp://www.sunxin.org在窗口中贴图 1、创建位图 CBitmap bitmap; bitmap.LoadBitmap(IDB_BITMAP1); 2、创建兼容DC CDC dcCompatible; dcCompatible.CreateCompatibleDC(pDC); 3、将位图选到兼容DC中 dcCompatible.SelectObject(&bitmap); 4、将兼容DC中的位图贴到当前DC中。 pDC->BitBlt(rect.left,rect.top,rect.Width(), rect.Height(),&dcCompatible,0,0,SRCCOPY); 位图 兼容DC 当前DC ④ ③ http://www.sunxin.org
<<向上翻页
©2008-现在 cucdc.com 高等教育资讯网 版权所有