[TASKMGR] Simplify tray icon code.

This commit is contained in:
Hermès Bélusca-Maïto 2021-12-21 00:18:51 +01:00
parent 0b4c8bdd1c
commit 6e77747b30
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 39 additions and 59 deletions

View file

@ -475,7 +475,7 @@ TaskManagerWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
case WM_DESTROY:
ShowWindow(hDlg, SW_HIDE);
TrayIcon_ShellRemoveTrayIcon();
TrayIcon_RemoveIcon();
wp.length = sizeof(WINDOWPLACEMENT);
GetWindowPlacement(hDlg, &wp);
TaskManagerSettings.Left = wp.rcNormalPosition.left;
@ -498,7 +498,7 @@ TaskManagerWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
RefreshApplicationPage();
RefreshProcessPage();
RefreshPerformancePage();
TrayIcon_ShellUpdateTrayIcon();
TrayIcon_UpdateIcon();
break;
case WM_ENTERMENULOOP:
@ -763,7 +763,7 @@ BOOL OnCreate(HWND hWnd)
RefreshProcessPage();
RefreshPerformancePage();
TrayIcon_ShellAddTrayIcon();
TrayIcon_AddIcon();
return TRUE;
}