This commit is contained in:
NishiOwO 2025-04-12 10:36:41 +09:00
parent 0856b83f71
commit 034fc6faaa
No known key found for this signature in database
GPG Key ID: 27EF69B208EB9343

View File

@ -16,6 +16,10 @@ void ShowBitmapSize(HWND hWnd, HDC hdc, const char* name, int x, int y, int w, i
HBITMAP hBitmap = LoadBitmap(hInst, name);
BITMAP bmp;
HDC hmdc;
if(hBitmap == NULL){
MessageBox(NULL, "error", "error", MB_ICONERROR);
exit(0);
}
GetObject(hBitmap, sizeof(bmp), &bmp);
hmdc = CreateCompatibleDC(hdc);
SelectObject(hmdc, hBitmap);