Don't show the startup window. This isn't zdoom and it isn't 1998. :)
This commit is contained in:
parent
6876f0f84e
commit
ac1680c7a2
2 changed files with 3 additions and 3 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 ||
|
||||
|
|
|
|||
|
|
@ -39,7 +39,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;
|
||||
|
||||
|
|
@ -55,7 +55,7 @@ void MainWindow::Create(const FString& caption, int x, int y, int width, int hei
|
|||
WS_EX_APPWINDOW,
|
||||
WinClassName,
|
||||
wcaption.c_str(),
|
||||
WS_OVERLAPPEDWINDOW | WS_VISIBLE | WS_CLIPCHILDREN,
|
||||
WS_OVERLAPPEDWINDOW/* | WS_VISIBLE*/ | WS_CLIPCHILDREN,
|
||||
x, y, width, height,
|
||||
(HWND)NULL,
|
||||
(HMENU)NULL,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue