OWLNext 7.0
Borland's Object Windows Library for the modern age
|
#include <owl/trayicon.h>
Public Member Functions | |
TTrayIcon (TModule *module=&GetGlobalModule()) | |
TTrayIcon (TWindow *parent, TMsgId, const tstring &tip, TIcon &icon, uint id, TModule *module=&GetGlobalModule()) | |
TTrayIcon (TWindow *parent, TMsgId, const tstring &tip, TResId icon, uint id, TModule *module=&GetGlobalModule()) | |
virtual void | Init (TWindow *parent, TMsgId, const tstring &tip, TIcon *icon=0, uint id=0) |
virtual | ~TTrayIcon () |
bool | Enabled () const |
bool | Visible () const |
bool | Create () |
Create the tray icon => must have valid hWnd => call in SetupWindow();. | |
bool | SetText (const tstring &text) |
bool | SetText (TResId resId) |
tstring | GetText () const |
bool | SetParent (TWindow *wnd) |
TWindow * | GetParent () const |
bool | SetIcon (TIcon &icon, TAutoDelete=NoAutoDelete) |
bool | SetIcon (TResId resId) |
TIcon * | GetIcon () const |
void | HideIcon () |
void | ShowIcon () |
void | RemoveIcon () |
void | MoveToRight () |
TResult | EvTrayNotification (TParam1, TParam2) |
Default handler for tray notification message. | |
Protected Attributes | |
bool | bEnabled |
does O/S support tray icon? | |
bool | bHidden |
Has the icon been hidden? | |
TWindow * | Parent |
TModule * | Module |
TIcon * | Icon |
bool | ShouldDelete |
Definition at line 32 of file trayicon.h.
owl::TTrayIcon::TTrayIcon | ( | TModule * | module = &GetGlobalModule() | ) |
Definition at line 55 of file trayicon.cpp.
owl::TTrayIcon::TTrayIcon | ( | TWindow * | parent, |
TMsgId | msg, | ||
const tstring & | tip, | ||
TIcon & | icon, | ||
uint | id, | ||
TModule * | module = &GetGlobalModule() ) |
Definition at line 68 of file trayicon.cpp.
owl::TTrayIcon::TTrayIcon | ( | TWindow * | parent, |
TMsgId | msg, | ||
const tstring & | tip, | ||
TResId | icon, | ||
uint | id, | ||
TModule * | module = &GetGlobalModule() ) |
Definition at line 79 of file trayicon.cpp.
References bHidden, Init(), Module, and ShouldDelete.
|
virtual |
Definition at line 156 of file trayicon.cpp.
References Icon, RemoveIcon(), and ShouldDelete.
bool owl::TTrayIcon::Create | ( | ) |
Create the tray icon => must have valid hWnd => call in SetupWindow();.
Definition at line 138 of file trayicon.cpp.
References bEnabled, owl::TWindow::GetHandle(), owl::TWindow::IsWindow(), Parent, and owl::TShell::Shell_NotifyIcon().
|
inline |
Definition at line 85 of file trayicon.h.
References bEnabled.
Default handler for tray notification message.
Definition at line 287 of file trayicon.cpp.
References owl::TMenu::GetMenuItemID(), owl::TMenu::IsOK(), Module, Parent, and owl::TWindow::SendMessage().
TIcon * owl::TTrayIcon::GetIcon | ( | ) | const |
|
inline |
Definition at line 91 of file trayicon.h.
References Parent.
tstring owl::TTrayIcon::GetText | ( | ) | const |
Definition at line 199 of file trayicon.cpp.
void owl::TTrayIcon::HideIcon | ( | ) |
Definition at line 188 of file trayicon.cpp.
References bEnabled, bHidden, and owl::TShell::Shell_NotifyIcon().
|
virtual |
Definition at line 95 of file trayicon.cpp.
References _tcslen, _tcsncpy, bEnabled, bHidden, CHECK, Icon, Parent, PRECONDITION, and ShouldDelete.
void owl::TTrayIcon::MoveToRight | ( | ) |
Definition at line 166 of file trayicon.cpp.
References HideIcon(), and ShowIcon().
void owl::TTrayIcon::RemoveIcon | ( | ) |
Definition at line 175 of file trayicon.cpp.
References bEnabled, and owl::TShell::Shell_NotifyIcon().
bool owl::TTrayIcon::SetIcon | ( | TIcon & | icon, |
TAutoDelete | shouldDelete = NoAutoDelete ) |
Definition at line 225 of file trayicon.cpp.
References owl::AutoDelete, bEnabled, Icon, owl::TShell::Shell_NotifyIcon(), and ShouldDelete.
Definition at line 98 of file trayicon.h.
References owl::AutoDelete, Module, and SetIcon().
Definition at line 268 of file trayicon.cpp.
References bEnabled, owl::TWindow::GetHandle(), owl::TWindow::IsWindow(), Parent, and owl::TShell::Shell_NotifyIcon().
Definition at line 244 of file trayicon.cpp.
References _tcscmp, _tcscpy, _tcslen, _tcsncpy, bEnabled, and owl::TShell::Shell_NotifyIcon().
Definition at line 94 of file trayicon.h.
References owl::TModule::LoadString(), Module, and SetText().
void owl::TTrayIcon::ShowIcon | ( | ) |
Definition at line 207 of file trayicon.cpp.
References _tcslen, bEnabled, bHidden, Icon, and owl::TShell::Shell_NotifyIcon().
|
inline |
Definition at line 88 of file trayicon.h.
References bHidden.
|
protected |
does O/S support tray icon?
Definition at line 73 of file trayicon.h.
|
protected |
Has the icon been hidden?
Definition at line 74 of file trayicon.h.
|
protected |
Definition at line 77 of file trayicon.h.
|
protected |
Definition at line 76 of file trayicon.h.
|
protected |
Definition at line 75 of file trayicon.h.
|
protected |
Definition at line 78 of file trayicon.h.