eliminated the small white part of the initial window content after the IWAD picker.
This commit is contained in:
parent
9ced091b19
commit
c62ecc44e2
4 changed files with 15 additions and 15 deletions
|
|
@ -491,7 +491,7 @@ LRESULT CALLBACK WndProc (HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
break;
|
||||
|
||||
case WM_ERASEBKGND:
|
||||
return true;
|
||||
return DefWindowProc(hWnd, message, wParam, lParam);
|
||||
|
||||
case WM_DEVICECHANGE:
|
||||
if (wParam == DBT_DEVNODES_CHANGED ||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ void MainWindow::Create(const FString& caption, int x, int y, int width, int hei
|
|||
WndClass.hInstance = hInstance;
|
||||
WndClass.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));
|
||||
WndClass.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||
WndClass.hbrBackground = NULL;
|
||||
WndClass.hbrBackground = CreateSolidBrush(RGB(0,0,0));
|
||||
WndClass.lpszMenuName = NULL;
|
||||
WndClass.lpszClassName = WinClassName;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue