@@ -288,6 +288,7 @@ void ShowSplash(HINSTANCE hInstance)
288
288
splashWindowClass.lpfnWndProc = DefWindowProc;
289
289
splashWindowClass.hInstance = hInstance;
290
290
splashWindowClass.hCursor = LoadCursor (NULL , IDC_ARROW);
291
+ splashWindowClass.hIcon = LoadIconA (GetModuleHandle (nullptr ), MAKEINTRESOURCE (110 )); // IDI_ICON1 from Launcher
291
292
splashWindowClass.lpszClassName = TEXT (" SplashWindow" );
292
293
RegisterClass (&splashWindowClass);
293
294
}
@@ -298,8 +299,8 @@ void ShowSplash(HINSTANCE hInstance)
298
299
}
299
300
else
300
301
{
301
- WindowScope window (CreateWindowEx (WS_EX_LAYERED | WS_EX_TOPMOST | WS_EX_TOOLWINDOW , splashWindowClass.lpszClassName , NULL , WS_POPUP | WS_VISIBLE,
302
- 0 , 0 , 0 , 0 , NULL , NULL , hInstance, NULL ));
302
+ WindowScope window (CreateWindowEx (WS_EX_LAYERED, splashWindowClass.lpszClassName , " Multi Theft Auto Launcher " , WS_POPUP | WS_VISIBLE, 0 , 0 , 0 , 0 ,
303
+ NULL , NULL , hInstance, NULL ));
303
304
304
305
if (!window.handle )
305
306
return ;
@@ -341,6 +342,9 @@ void ShowSplash(HINSTANCE hInstance)
341
342
splashWindow = window.Release ();
342
343
}
343
344
345
+ SetForegroundWindow (splashWindow);
346
+ SetWindowPos (splashWindow, HWND_TOP, 0 , 0 , 0 , 0 , SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
347
+
344
348
// Drain messages to allow for repaint in case picture bits were lost during previous operations
345
349
MSG msg;
346
350
while (PeekMessage (&msg, NULL , 0 , 0 , PM_NOREMOVE))
0 commit comments