1.vc λͼ Դ?位图酒店网站制作源码?
vc λͼ Դ??
void CBlat2View::OnDraw(CDC* pDC)
{
CBlat2Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// load IDB_BITMAP1 from our resources
CBitmap bmp;
if (bmp.LoadBitmap(IDB_BITMAP1))
{
// Get the size of the bitmap
BITMAP bmpInfo;
bmp.GetBitmap(&bmpInfo);
// Create an in-memory DC compatible with the
// display DC we're using to paint
CDC dcMemory;
dcMemory.CreateCompatibleDC(pDC);
// Select the bitmap into the in-memory DC
CBitmap* pOldBitmap = dcMemory.SelectObject(&bmp);
// Find a centerpoint for the bitmap in the client area
CRect rect;
GetClientRect(&rect);
int nX = rect.left + (rect.Width() - bmpInfo.bmWidth) / 2;
int nY = rect.top + (rect.Height() - bmpInfo.bmHeight) / 2;
// Copy the bits from the in-memory DC into the on-
// screen DC to actually do the painting. Use the centerpoint
// we computed for the target offset.
pDC->BitBlt(nX, nY, bmpInfo.bmWidth, bmpInfo.bmHeight, &dcMemory,
0, 0, SRCCOPY);
dcMemory.SelectObject(pOldBitmap);
}
else
TRACE0("ERROR: Where's IDB_BITMAP1?\n");
}
2024-11-21 01:46581人浏览
2024-11-21 01:342012人浏览
2024-11-21 01:071518人浏览
2024-11-21 01:011816人浏览
2024-11-21 00:55874人浏览
2024-11-20 23:022595人浏览
1.怎样才能回看军情直播间2.云播搜V10PHP版云播搜V10PHP版功能简介3.火焰云播放网页版网址 火焰云点播网页版地址怎样才能回看军情直播间 这个到号之后就没更新过。不知道是不是停播了 这
1.求一个简单的静态的个人网页源代码 要html的2.如何下载网站hml3.盲盒商城源码开源完整版附搭建教程UNIAPP·HashMart求一个简单的静态的个人网页源代码 要html的 我教你,你
1.Android-自定义轮播Banner-Viewpaper2实现+贪吃蛇原点指示器+触摸暂停轮播处理Android-自定义轮播Banner-Viewpaper2实现+贪吃蛇原点指示器+触摸暂停轮播