Skip to content

Commit

Permalink
Solve issue #11
Browse files Browse the repository at this point in the history
  • Loading branch information
freedom7341 committed Oct 21, 2024
1 parent ca4b30e commit 9c6fe40
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion progmgr/progmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,19 +69,30 @@ int WINAPI wWinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance,
HANDLE hAccel;
HMENU hMenu;
HMENU hSystemMenu;
HWND hOldProgMgr;
WNDCLASS wc = { 0 };
WCHAR szBuffer[MAX_PATH];
RECT rcRoot;
POINT ptOffset = { 0 };

// Initialize the instance
// Grab the instance
g_hAppInstance = hInstance;

// Create Strings
LoadString(g_hAppInstance, IDS_PMCLASS, g_szClass, ARRAYSIZE(g_szClass));
LoadString(g_hAppInstance, IDS_APPTITLE, g_szAppTitle, ARRAYSIZE(g_szAppTitle));
LoadString(g_hAppInstance, IDS_WEBSITE, g_szWebsite, ARRAYSIZE(g_szWebsite));

// Lazily search for another instance of Program Manager
// If we find one, switch focus to it and then abort.
hOldProgMgr = FindWindowEx(NULL, NULL, g_szClass, NULL);

if (hOldProgMgr != NULL)
{
SwitchToThisWindow(hOldProgMgr, FALSE);
return FALSE;
}

// Get Desktop background color
//CreateSolidBrush(GetBackgroundColor

Expand Down

0 comments on commit 9c6fe40

Please sign in to comment.