Skip to content

Commit 56fbfc3

Browse files
committed
Group windows under a single taskbar button on Windows
1 parent 70237f3 commit 56fbfc3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Client/core/Core.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ int WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, PVOID pvNothing)
3838
ULONG heapInfo = 2;
3939
HeapSetInformation(GetProcessHeap(), HeapCompatibilityInformation, &heapInfo, sizeof(heapInfo));
4040

41+
// Group our processes and windows under a single taskbar button
42+
SetCurrentProcessExplicitAppUserModelID(L"Multi Theft Auto");
43+
4144
FileTranslator.GetGTARootDirectory(WorkingDirectory);
4245
SetCurrentDirectory(WorkingDirectory.c_str());
4346

Client/launch/Main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
7777

7878
ApplyDpiAwareness();
7979

80+
// Group our processes and windows under a single taskbar button
81+
SetCurrentProcessExplicitAppUserModelID(L"Multi Theft Auto");
82+
8083
// Load the loader.dll and continue the load
8184
#ifdef MTA_DEBUG
8285
SString strLoaderDllFilename = "loader_d.dll";

0 commit comments

Comments
 (0)