mirror of
https://github.com/nishiowo/nishbox
synced 2025-04-21 20:24:39 +00:00
fixing
This commit is contained in:
parent
0856b83f71
commit
034fc6faaa
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user