]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/taskbar.h
removed unsecure wxTmpnam() function (patch by Francesco Montorsi)
[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 _TASKBAR_H_
14 #define _TASKBAR_H_
15
16 #include "wx/icon.h"
17
18 // private helper class:
19 class WXDLLIMPEXP_ADV wxTaskBarIconWindow;
20
21 class WXDLLIMPEXP_ADV wxTaskBarIcon: public wxTaskBarIconBase
22 {
23 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
24 public:
25 wxTaskBarIcon();
26 virtual ~wxTaskBarIcon();
27
28 // Accessors
29 inline bool IsOk() const { return true; }
30 inline bool IsIconInstalled() const { return m_iconAdded; }
31
32 // Operations
33 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
34 bool RemoveIcon(void);
35 bool PopupMenu(wxMenu *menu); //, int x, int y);
36
37 // Implementation
38 protected:
39 friend class wxTaskBarIconWindow;
40 long WindowProc(unsigned int msg, unsigned int wParam, long lParam);
41 void RegisterWindowMessages();
42
43 // Data members
44 protected:
45 wxTaskBarIconWindow *m_win;
46 bool m_iconAdded;
47 wxIcon m_icon;
48 wxString m_strTooltip;
49
50 };
51
52 #endif
53 // _TASKBAR_H_