📄 pen_bmp.cpp
字号:
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 );
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -