#include <window.h>
Public Member Functions | |
TrayIcon (HWND hparent, UINT id) | |
~TrayIcon () | |
void | Add (HICON hIcon, LPCTSTR tooltip=NULL) |
void | Modify (HICON hIcon, LPCTSTR tooltip=NULL) |
void | Remove () |
Protected Member Functions | |
void | Set (DWORD dwMessage, UINT id, HICON hIcon, LPCTSTR tooltip=NULL) |
Protected Attributes | |
HWND | _hparent |
UINT | _id |
Definition at line 971 of file window.h.
TrayIcon::TrayIcon | ( | HWND | hparent, | |
UINT | id | |||
) | [inline] |
void TrayIcon::Add | ( | HICON | hIcon, | |
LPCTSTR | tooltip = NULL | |||
) | [inline] |
void TrayIcon::Modify | ( | HICON | hIcon, | |
LPCTSTR | tooltip = NULL | |||
) | [inline] |
void TrayIcon::Remove | ( | ) | [inline] |
void TrayIcon::Set | ( | DWORD | dwMessage, | |
UINT | id, | |||
HICON | hIcon, | |||
LPCTSTR | tooltip = NULL | |||
) | [inline, protected] |
Definition at line 1000 of file window.h.
References COUNTOF, and PM_TRAYICON.
01001 { 01002 NOTIFYICONDATA nid = { 01003 sizeof(NOTIFYICONDATA), // cbSize 01004 _hparent, // hWnd 01005 id, // uID 01006 NIF_MESSAGE|NIF_ICON, // uFlags 01007 PM_TRAYICON, // uCallbackMessage 01008 hIcon // hIcon 01009 }; 01010 01011 if (tooltip) 01012 lstrcpyn(nid.szTip, tooltip, COUNTOF(nid.szTip)); 01013 01014 if (nid.szTip[0]) 01015 nid.uFlags |= NIF_TIP; 01016 01017 Shell_NotifyIcon(dwMessage, &nid); 01018 }
HWND TrayIcon::_hparent [protected] |
UINT TrayIcon::_id [protected] |
IBrowser Source Code Documentation
generated on 18.09.2008 by |