ReactOS 0.4.16-dev-340-g0540c21
trayicon.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define WM_ONTRAYICON   (WM_USER + 5)
 

Functions

BOOL TrayIcon_AddIcon (VOID)
 
BOOL TrayIcon_RemoveIcon (VOID)
 
BOOL TrayIcon_UpdateIcon (VOID)
 

Macro Definition Documentation

◆ WM_ONTRAYICON

#define WM_ONTRAYICON   (WM_USER + 5)

Definition at line 11 of file trayicon.h.

Function Documentation

◆ TrayIcon_AddIcon()

BOOL TrayIcon_AddIcon ( VOID  )

Definition at line 138 of file trayicon.c.

139{
140 return TrayIcon_Update(NIM_ADD);
141}
#define NIM_ADD
Definition: shellapi.h:95
static BOOL TrayIcon_Update(_In_ DWORD dwMessage)
Definition: trayicon.c:103

Referenced by OnCreate().

◆ TrayIcon_RemoveIcon()

BOOL TrayIcon_RemoveIcon ( VOID  )

Definition at line 143 of file trayicon.c.

144{
146
147 ZeroMemory(&nid, sizeof(nid));
148
149 nid.cbSize = sizeof(nid);
150 nid.hWnd = hMainWnd;
151 nid.uID = 0;
152 nid.uFlags = 0;
154
156}
HWND hMainWnd
Definition: magnifier.c:32
NOTIFYICONDATA nid
Definition: magnifier.c:44
#define NIM_DELETE
Definition: shellapi.h:97
UINT uCallbackMessage
Definition: shellapi.h:232
BOOL WINAPI Shell_NotifyIconW(DWORD dwMessage, PNOTIFYICONDATAW pnid)
Definition: systray.cpp:128
#define WM_ONTRAYICON
Definition: trayicon.h:11
#define ZeroMemory
Definition: winbase.h:1737

Referenced by TaskManagerWndProc().

◆ TrayIcon_UpdateIcon()

BOOL TrayIcon_UpdateIcon ( VOID  )

Definition at line 158 of file trayicon.c.

159{
161}
#define NIM_MODIFY
Definition: shellapi.h:96

Referenced by TaskManagerWndProc().