Contents Up Previous Next

wxTaskBarIcon

This class represents a Windows 95 taskbar icon, appearing in the 'system tray' and responding to mouse clicks. An icon has an optional tooltip. This class is only supported for Windows 95/NT.

Derived from

wxObject

Include files

<wx/taskbar.h>

Members

wxTaskBarIcon::wxTaskBarIcon
wxTaskBarIcon::~wxTaskBarIcon
wxTaskBarIcon::IsIconInstalled
wxTaskBarIcon::IsOK
wxTaskBarIcon::OnLButtonDown
wxTaskBarIcon::OnLButtonDClick
wxTaskBarIcon::OnLButtonUp
wxTaskBarIcon::OnRButtonDown
wxTaskBarIcon::OnRButtonDClick
wxTaskBarIcon::OnRButtonUp
wxTaskBarIcon::OnMouseMove
wxTaskBarIcon::RemoveIcon
wxTaskBarIcon::SetIcon


wxTaskBarIcon::wxTaskBarIcon

wxTaskBarIcon()

Default constructor.


wxTaskBarIcon::~wxTaskBarIcon

~wxTaskBarIcon()

Destroys the wxTaskBarIcon object, removing the icon if not already removed.


wxTaskBarIcon::IsIconInstalled

bool IsIconInstalled()

Returns TRUE if SetIcon was called with no subsequent RemoveIcon.


wxTaskBarIcon::IsOK

bool IsOK()

Returns TRUE if the object initialized successfully.


wxTaskBarIcon::OnLButtonDown

virtual void OnLButtonDown()

Override this function to intercept left mouse button down events.


wxTaskBarIcon::OnLButtonDClick

virtual void OnLButtonDClick()

Override this function to intercept left mouse button double-click events.


wxTaskBarIcon::OnLButtonUp

virtual void OnLButtonUp()

Override this function to intercept left mouse button up events.


wxTaskBarIcon::OnRButtonDown

virtual void OnRButtonDown()

Override this function to intercept right mouse button down events.


wxTaskBarIcon::OnRButtonDClick

virtual void OnRButtonDClick()

Override this function to intercept right mouse button double-click events.


wxTaskBarIcon::OnRButtonUp

virtual void OnRButtonUp()

Override this function to intercept right mouse button up events.


wxTaskBarIcon::OnMouseMove

virtual void OnMouseMove()

Override this function to intercept mouse move events.


wxTaskBarIcon::RemoveIcon

bool RemoveIcon()

Removes the icon previously set with SetIcon.


wxTaskBarIcon::SetIcon

bool SetIcon(const wxIcon& icon, const wxString& tooltip)

Sets the icon, and optional tooltip text.