]> git.saurik.com Git - wxWidgets.git/blob - include/wx/palmos/taskbar.h
Compilo.
[wxWidgets.git] / include / wx / palmos / taskbar.h
1 /////////////////////////////////////////////////////////////////////////
2 // File: wx/palmos/taskbar.h
3 // Purpose: Defines wxTaskBarIcon class.
4 // Author: William Osborne - minimal working wxPalmOS port
5 // Modified by:
6 // Created: 10/13/04
7 // RCS-ID: $Id$
8 // Copyright: (c) William Osborne
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////
11
12 #ifndef _TASKBAR_H_
13 #define _TASKBAR_H_
14
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "taskbar.h"
17 #endif
18
19 #include "wx/icon.h"
20
21 // private helper class:
22 class WXDLLIMPEXP_ADV wxTaskBarIconWindow;
23
24 class WXDLLIMPEXP_ADV wxTaskBarIcon: public wxTaskBarIconBase
25 {
26 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
27 public:
28 wxTaskBarIcon();
29 virtual ~wxTaskBarIcon();
30
31 // Accessors
32 inline bool IsOk() const { return true; }
33 inline bool IsIconInstalled() const { return m_iconAdded; }
34
35 // Operations
36 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
37 bool RemoveIcon(void);
38 bool PopupMenu(wxMenu *menu); //, int x, int y);
39
40 // Implementation
41 protected:
42 friend class wxTaskBarIconWindow;
43 long WindowProc(unsigned int msg, unsigned int wParam, long lParam);
44 void RegisterWindowMessages();
45
46 // Data members
47 protected:
48 wxTaskBarIconWindow *m_win;
49 bool m_iconAdded;
50 wxIcon m_icon;
51 wxString m_strTooltip;
52 };
53
54 #endif
55 // _TASKBAR_H_