]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/taskbar.h
added wxDataViewModel::HasContainerColumns
[wxWidgets.git] / include / wx / msw / taskbar.h
1 /////////////////////////////////////////////////////////////////////////
2 // File: wx/msw/taskbar.h
3 // Purpose: Defines wxTaskBarIcon class for manipulating icons on the
4 // Windows 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 _WX_TASKBAR_H_
14 #define _WX_TASKBAR_H_
15
16 #include "wx/icon.h"
17
18 // private helper class:
19 class WXDLLIMPEXP_FWD_ADV wxTaskBarIconWindow;
20
21 class WXDLLIMPEXP_ADV wxTaskBarIcon : public wxTaskBarIconBase
22 {
23 public:
24 wxTaskBarIcon();
25 virtual ~wxTaskBarIcon();
26
27 // Accessors
28 bool IsOk() const { return true; }
29 bool IsIconInstalled() const { return m_iconAdded; }
30
31 // Operations
32 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
33 bool RemoveIcon(void);
34 bool PopupMenu(wxMenu *menu);
35
36 protected:
37 friend class wxTaskBarIconWindow;
38
39 long WindowProc(unsigned int msg, unsigned int wParam, long lParam);
40 void RegisterWindowMessages();
41
42
43 wxTaskBarIconWindow *m_win;
44 bool m_iconAdded;
45 wxIcon m_icon;
46 wxString m_strTooltip;
47
48 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
49 };
50
51 #endif // _WX_TASKBAR_H_