#include <window.h>
List of all members.
Detailed Description
Definition at line 990 of file window.h.
Constructor & Destructor Documentation
TrayIcon::TrayIcon |
( |
HWND |
hparent, |
|
|
UINT |
id |
|
) |
| [inline] |
TrayIcon::~TrayIcon |
( |
) |
[inline] |
Member Function Documentation
void TrayIcon::Add |
( |
HICON |
hIcon, |
|
|
LPCTSTR |
tooltip = NULL |
|
) |
| [inline] |
void TrayIcon::Modify |
( |
HICON |
hIcon, |
|
|
LPCTSTR |
tooltip = NULL |
|
) |
| [inline] |
void TrayIcon::Remove |
( |
) |
[inline] |
Definition at line 1004 of file window.h.
{
NOTIFYICONDATA nid = {
sizeof(NOTIFYICONDATA),
_hparent,
_id,
};
Shell_NotifyIcon(NIM_DELETE, &nid);
}
void TrayIcon::Set |
( |
DWORD |
dwMessage, |
|
|
UINT |
id, |
|
|
HICON |
hIcon, |
|
|
LPCTSTR |
tooltip = NULL |
|
) |
| [inline, protected] |
Definition at line 1019 of file window.h.
References COUNTOF, and PM_TRAYICON.
{
NOTIFYICONDATA nid = {
sizeof(NOTIFYICONDATA),
_hparent,
id,
NIF_MESSAGE|NIF_ICON,
PM_TRAYICON,
hIcon
};
if (tooltip)
lstrcpyn(nid.szTip, tooltip, COUNTOF(nid.szTip));
if (nid.szTip[0])
nid.uFlags |= NIF_TIP;
Shell_NotifyIcon(dwMessage, &nid);
}
Member Data Documentation
The documentation for this struct was generated from the following file: