?? pen_bmp.cpp
字號(hào):
HBITMAP hBitmap;
HDC hDC;
HDC hMemDC;
// Load the bitmap into memory
hBitmap = LoadBitmap( hInst, "pen" );
// Paint the bitmap onto the MemDC and then the screen
hDC = GetDc( hWnd );
hMemDC = CreateCompatibleDC( hDC);
SelectObject( hMemDC, hBitmap );
BitBlt( hDC, 10, 10, 60, 60, hMemDC, 0, 0, SRCCOPY );
DeleteDC( hMemDC );
ReleaseDC( hWnd, hDC );
DeleteObject( hBitmap );
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -