内存图片的起始位置
参数9: 传递的方式
最后的OnPaint()
void OnPaint(HDC hDC)
{
HDC mDC = CreateCompatibleDC(hDC);
HBITMAP...hBitmap = CreateCompatibleBitmap(hDC, 300, 600);
SelectObject(mDC, hBitmap);
Rectangle(hDC, 0,...0, 300, 600);
BitBlt(hDC, 0, 0, 300, 600, mDC, 0, 0, SRCCOPY);
DeleteObject(hBitmap);
DeleteDC...hBitmap = CreateCompatibleBitmap(hDC, 300, 600);
SelectObject(mDC, hBitmap);
Rectangle(hDC, 0,...0, 300, 600);
BitBlt(hDC, 0, 0, 300, 600, mDC, 0, 0, SRCCOPY);
DeleteObject(hBitmap);
DeleteDC