mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
[TASKMGR] Follow-up of 'Refactor trayicon.c' (99fb812
)
This commit is contained in:
parent
99fb812be4
commit
ec93c2340d
1 changed files with 6 additions and 2 deletions
|
@ -117,10 +117,12 @@ done:
|
||||||
BOOL TrayIcon_ShellAddTrayIcon(void)
|
BOOL TrayIcon_ShellAddTrayIcon(void)
|
||||||
{
|
{
|
||||||
NOTIFYICONDATAW nid;
|
NOTIFYICONDATAW nid;
|
||||||
HICON hIcon = TrayIcon_GetProcessorUsageIcon();
|
HICON hIcon;
|
||||||
BOOL bRetVal;
|
BOOL bRetVal;
|
||||||
WCHAR szMsg[64];
|
WCHAR szMsg[64];
|
||||||
|
|
||||||
|
hIcon = TrayIcon_GetProcessorUsageIcon();
|
||||||
|
|
||||||
ZeroMemory(&nid, sizeof(nid));
|
ZeroMemory(&nid, sizeof(nid));
|
||||||
nid.cbSize = sizeof(NOTIFYICONDATAW);
|
nid.cbSize = sizeof(NOTIFYICONDATAW);
|
||||||
nid.hWnd = hMainWnd;
|
nid.hWnd = hMainWnd;
|
||||||
|
@ -157,10 +159,12 @@ BOOL TrayIcon_ShellRemoveTrayIcon(void)
|
||||||
BOOL TrayIcon_ShellUpdateTrayIcon(void)
|
BOOL TrayIcon_ShellUpdateTrayIcon(void)
|
||||||
{
|
{
|
||||||
NOTIFYICONDATAW nid;
|
NOTIFYICONDATAW nid;
|
||||||
HICON hIcon = TrayIcon_GetProcessorUsageIcon();
|
HICON hIcon;
|
||||||
BOOL bRetVal;
|
BOOL bRetVal;
|
||||||
WCHAR szTemp[64];
|
WCHAR szTemp[64];
|
||||||
|
|
||||||
|
hIcon = TrayIcon_GetProcessorUsageIcon();
|
||||||
|
|
||||||
ZeroMemory(&nid, sizeof(nid));
|
ZeroMemory(&nid, sizeof(nid));
|
||||||
nid.cbSize = sizeof(NOTIFYICONDATAW);
|
nid.cbSize = sizeof(NOTIFYICONDATAW);
|
||||||
nid.hWnd = hMainWnd;
|
nid.hWnd = hMainWnd;
|
||||||
|
|
Loading…
Reference in a new issue