1 /////////////////////////////////////////////////////////////////////////
2 // File: wx/palmos/taskbar.h
3 // Purpose: Defines wxTaskBarIcon class.
4 // Author: William Osborne - minimal working wxPalmOS port
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "taskbar.h"
21 // private helper class:
22 class WXDLLIMPEXP_ADV wxTaskBarIconWindow
;
24 class WXDLLIMPEXP_ADV wxTaskBarIcon
: public wxTaskBarIconBase
26 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon
)
29 virtual ~wxTaskBarIcon();
32 inline bool IsOk() const { return true; }
33 inline bool IsIconInstalled() const { return m_iconAdded
; }
36 bool SetIcon(const wxIcon
& icon
, const wxString
& tooltip
= wxEmptyString
);
37 bool RemoveIcon(void);
38 bool PopupMenu(wxMenu
*menu
); //, int x, int y);
42 friend class wxTaskBarIconWindow
;
43 long WindowProc(unsigned int msg
, unsigned int wParam
, long lParam
);
44 void RegisterWindowMessages();
48 wxTaskBarIconWindow
*m_win
;
51 wxString m_strTooltip
;