#include <TrayIcon.h>
Inheritance diagram for wkgl::TrayIcon:
Public Methods | |
| TrayIcon (Component *parent, HICON icon, const char *tooltip=NULL) | |
| Creates a new tray icon, initially not shown. | |
| TrayIcon (Component *parent, const char *iconfile, const char *tooltip=NULL) | |
| Creates a new tray icon, initially not shown. | |
| ~TrayIcon () | |
| Destroys a tray icon, and removes it from the system tray. | |
| BOOL | show () |
| Displays a tray icon. | |
| BOOL | hide () |
| Removes a tray icon from the system tray. | |
| BOOL | isShowing () |
| Returns true if the icon is showing. | |
| BOOL | setIcon (HICON icon) |
| Sets the icon that is displayed to the given icon. | |
| BOOL | setIcon (const char *iconfile) |
| Loads the given icon and sets it if the icons is visible. | |
| BOOL | setTooltip (const char *tooltip) |
| Sets the tooltip text. | |
| virtual void | registerComponent (HWND *hwnd, Component *com) |
| Allows this component to recieve top level events. | |
| virtual void | registerChild (HWND *hwnd, Component *com) |
| Allows this component to propagate an event to the given child. | |
| virtual LRESULT | fireChildEvents (UINT message, WPARAM wParam, LPARAM lParam) |
| Propagates the events to the appropriate child/children. | |
| virtual Component * | getParent () |
| Returns a pointer to the parent component. | |
| virtual void | setParent (Component *p) |
| Sets the components parent. | |
| virtual HINSTANCE | getInstance () |
| Returns the instance of the application. | |
| virtual HWND | getHwnd () |
| Returns the window handle. | |
| virtual void | setHwnd (HWND h) |
| Sets the window handle. | |
| virtual void | addCallBack (COMCALLBACK callback) |
| Adds a callback function. | |
| virtual void | addCallBack (CallBack *callback) |
| Adds a callback method. | |
| virtual LRESULT | fireEvents (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
| Propagates events to all the callback functions. | |
Static Public Methods | |
| UINT | getWndProc () |
| Returns the the address of GlobalProc(). | |
Protected Methods | |
| void | destroyLoadedIcon () |
| This method destroys an icon that was made by SetIcon(String iconfile). | |
| BOOL | commitChanges () |
| This method updates the tray icons appearence if it is showing. | |
| void | setFlags () |
| This method updates the tray icons appearence if it is showing. | |
Protected Attributes | |
| NOTIFYICONDATA | ndata |
| The data needed to send messages to an icon. | |
| HICON | curicon |
| The curent icon if it was loaded, else NULL. | |
| bool | showing |
| Flag specifying that an icon is showing. | |
| Component * | parent |
| The parent of the component. | |
| HINSTANCE | hInstance |
| The instance of this application. | |
| HWND | hwnd |
| The handle to the component. | |
| std::vector< CHILDCOMPONENT > | clisteners |
| A list of the child components that events are to be passed to. | |
| std::vector< COMCALLBACK > | comlisteners |
| Stores the callbacks for this component that use functions. Stores the functions given to AddCallBack(). It is used by FireEvents() to notify the callbacks. | |
| std::vector< CallBack * > | classlisteners |
| Stores the callbacks for this component that come from classes. Stores the functions given to AddCallBack(). It is used by FireEvents() to notify the callbacks. | |
Static Protected Attributes | |
| UINT | uid_inc = 1 |
| Incriments ndata.uId. | |
Friends | |
| LRESULT CALLBACK | globalProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) |
| Is used to process all the callback functions. | |
|
||||||||||||||||
|
Creates a new tray icon, initially not shown.
|
|
||||||||||||||||
|
Creates a new tray icon, initially not shown.
|
|
|
Destroys a tray icon, and removes it from the system tray.
|
|
|
Adds a callback method. The callback must be a method from a class that inheirits from CallBack.
|
|
|
Adds a callback function.
|
|
|
This method updates the tray icons appearence if it is showing.
|
|
|
This method destroys an icon that was made by SetIcon(String iconfile).
|
|
||||||||||||||||
|
Propagates the events to the appropriate child/children.
Reimplemented in wkgl::Dialog. |
|
||||||||||||||||||||
|
Propagates events to all the callback functions.
Reimplemented in wkgl::Dialog. |
|
|
Returns the window handle.
|
|
|
Returns the instance of the application.
|
|
|
Returns a pointer to the parent component.
|
|
|
Returns the the address of GlobalProc().
|
|
|
Removes a tray icon from the system tray.
|
|
|
Returns true if the icon is showing.
|
|
||||||||||||
|
Allows this component to propagate an event to the given child.
|
|
||||||||||||
|
Allows this component to recieve top level events.
|
|
|
This method updates the tray icons appearence if it is showing.
|
|
|
Sets the window handle.
|
|
|
Loads the given icon and sets it if the icons is visible.
|
|
|
Sets the icon that is displayed to the given icon.
|
|
|
Sets the components parent.
|
|
|
Sets the tooltip text.
|
|
|
Displays a tray icon.
|
|
||||||||||||||||||||
|
Is used to process all the callback functions.
|
|
|
Stores the callbacks for this component that come from classes. Stores the functions given to AddCallBack(). It is used by FireEvents() to notify the callbacks.
|
|
|
A list of the child components that events are to be passed to. Stores the children who wish to recieve events.
|
|
|
Stores the callbacks for this component that use functions. Stores the functions given to AddCallBack(). It is used by FireEvents() to notify the callbacks.
|
|
|
The curent icon if it was loaded, else NULL.
|
|
|
The instance of this application.
|
|
|
The handle to the component.
|
|
|
The data needed to send messages to an icon.
|
|
|
The parent of the component.
Reimplemented in wkgl::Control. |
|
|
Flag specifying that an icon is showing.
|
|
|
Incriments ndata.uId.
|
1.2.18