Win32 window creation tweaks

This commit is contained in:
Elias Naur 2003-11-17 07:45:14 +00:00
parent 83c70ee86a
commit 1f9f7365a0
1 changed files with 2 additions and 3 deletions

View File

@ -380,10 +380,10 @@ static bool createWindow(const char * title, int x, int y, int width, int height
if (fullscreen) { if (fullscreen) {
exstyle = WS_EX_APPWINDOW | WS_EX_TOPMOST; exstyle = WS_EX_APPWINDOW | WS_EX_TOPMOST;
windowflags = WS_POPUP | WS_VISIBLE; windowflags = WS_POPUP;
} else { } else {
exstyle = WS_EX_APPWINDOW; exstyle = WS_EX_APPWINDOW;
windowflags = WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_VISIBLE | WS_MINIMIZEBOX | WS_SYSMENU; windowflags = WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_MINIMIZEBOX | WS_SYSMENU;
} }
// If we're not a fullscreen window, adjust the height to account for the // If we're not a fullscreen window, adjust the height to account for the
@ -423,7 +423,6 @@ static bool createWindow(const char * title, int x, int y, int width, int height
printf("Created window\n"); printf("Created window\n");
#endif #endif
// ShowWindow(hwnd, SW_SHOWNORMAL);
ShowWindow(hwnd, SW_SHOW); ShowWindow(hwnd, SW_SHOW);
UpdateWindow(hwnd); UpdateWindow(hwnd);
SetForegroundWindow(hwnd); SetForegroundWindow(hwnd);