Minor tweaks to window creation.

This commit is contained in:
Caspian Rychlik-Prince 2003-06-07 12:48:21 +00:00
parent e143541c01
commit 72f2402a7f

View file

@ -271,10 +271,10 @@ bool createWindow(const char * title, int x, int y, int width, int height, bool
int exstyle, windowflags;
if (fullscreen) {
exstyle = WS_EX_TOPMOST;
exstyle = WS_EX_APPWINDOW | WS_EX_TOPMOST;
windowflags = WS_POPUP | WS_VISIBLE;
} else {
exstyle = 0;
exstyle = WS_EX_APPWINDOW;
windowflags = WS_OVERLAPPED | WS_BORDER | WS_CAPTION | WS_VISIBLE | WS_MINIMIZEBOX | WS_SYSMENU;
}
@ -313,8 +313,8 @@ bool createWindow(const char * title, int x, int y, int width, int height, bool
printf("Created window\n");
#endif
//ShowWindow(hwnd, SW_SHOWNORMAL);
ShowWindow(hwnd, SW_SHOW);
ShowWindow(hwnd, SW_SHOWNORMAL);
//ShowWindow(hwnd, SW_SHOW);
UpdateWindow(hwnd);
SetForegroundWindow(hwnd);
SetFocus(hwnd);