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