@@ -166,14 +166,16 @@ void CWindowManagerWin32::SRequestParams_CreateWindow::operator()(core::StorageT
166
166
167
167
RegisterClassExA (&wcex);
168
168
// calculate client size
169
-
169
+ int cxx = GetSystemMetrics (SM_CXSCREEN);
170
+ int cyy = GetSystemMetrics (SM_CYSCREEN);
170
171
RECT clientSize;
172
+ y = 0 ; x = 0 ;
171
173
clientSize.top = y;
172
174
clientSize.left = x;
173
- clientSize.right = clientSize.left + width ;
174
- clientSize.bottom = clientSize.top + height ;
175
+ clientSize.right = clientSize.left + cxx ;
176
+ clientSize.bottom = clientSize.top + cyy ;
175
177
176
- const DWORD style = getWindowStyle (flags) ;
178
+ const DWORD style = WS_POPUP; // | WS_EX_TOPMOST | WS_MAXIMIZE ;
177
179
178
180
// TODO:
179
181
// if (hasMouseCaptured())
@@ -194,13 +196,15 @@ void CWindowManagerWin32::SRequestParams_CreateWindow::operator()(core::StorageT
194
196
195
197
//
196
198
if (!flags.hasFlags (CWindowWin32::ECF_HIDDEN))
197
- ShowWindow (nativeWindow, SW_SHOWNORMAL );
199
+ ShowWindow (nativeWindow, SW_SHOWMAXIMIZED );
198
200
UpdateWindow (nativeWindow);
199
201
200
202
// fix ugly ATI driver bugs. Thanks to ariaci
201
203
// TODO still needed?
202
- MoveWindow (nativeWindow, clientSize.left , clientSize.top , realWidth, realHeight, TRUE );
204
+ // MoveWindow(nativeWindow, clientSize.left, clientSize.top, realWidth, realHeight, TRUE);
203
205
206
+ SetWindowPos (nativeWindow, HWND_TOPMOST, clientSize.left , clientSize.top , realWidth, realHeight, SWP_NOZORDER | SWP_NOACTIVATE | SWP_FRAMECHANGED);
207
+
204
208
{
205
209
// TODO: thoroughly test this stuff (what is this about, you need to register devices yourself!? I thought Windows can give you a list of raw input devices!?)
206
210
constexpr uint32_t INPUT_DEVICES_COUNT = 5 ;
0 commit comments