]> git.saurik.com Git - wxWidgets.git/blame - include/wx/msw/taskbar.h
Apply [ 1713345 ] combobox: cmd accelerators shouldn't steal editing hotkeys
[wxWidgets.git] / include / wx / msw / taskbar.h
CommitLineData
2bda0e17 1/////////////////////////////////////////////////////////////////////////
fa1c12bd
VZ
2// File: wx/msw/taskbar.h
3// Purpose: Defines wxTaskBarIcon class for manipulating icons on the
2bda0e17
KB
4// Windows task bar.
5// Author: Julian Smart
1e6d9c20 6// Modified by: Vaclav Slavik
2bda0e17
KB
7// Created: 24/3/98
8// RCS-ID: $Id$
fa1c12bd 9// Copyright: (c) Julian Smart
65571936 10// Licence: wxWindows licence
2bda0e17
KB
11/////////////////////////////////////////////////////////////////////////
12
13#ifndef _TASKBAR_H_
14#define _TASKBAR_H_
15
d162a7ee
VZ
16#include "wx/icon.h"
17
1e6d9c20
VS
18// private helper class:
19class WXDLLIMPEXP_ADV wxTaskBarIconWindow;
2bda0e17 20
131f235d 21class WXDLLIMPEXP_ADV wxTaskBarIcon: public wxTaskBarIconBase
6af507f7 22{
fc7a2a60 23 DECLARE_DYNAMIC_CLASS_NO_COPY(wxTaskBarIcon)
2bda0e17 24public:
1e6d9c20
VS
25 wxTaskBarIcon();
26 virtual ~wxTaskBarIcon();
2bda0e17
KB
27
28// Accessors
1e6d9c20 29 inline bool IsOk() const { return true; }
2bda0e17
KB
30 inline bool IsIconInstalled() const { return m_iconAdded; }
31
32// Operations
2b5f62a0 33 bool SetIcon(const wxIcon& icon, const wxString& tooltip = wxEmptyString);
2bda0e17 34 bool RemoveIcon(void);
69ecd30f 35 bool PopupMenu(wxMenu *menu); //, int x, int y);
2bda0e17 36
2bda0e17 37// Implementation
1e6d9c20
VS
38protected:
39 friend class wxTaskBarIconWindow;
dda36afd 40 long WindowProc(unsigned int msg, unsigned int wParam, long lParam);
1e6d9c20 41 void RegisterWindowMessages();
2bda0e17
KB
42
43// Data members
44protected:
1e6d9c20
VS
45 wxTaskBarIconWindow *m_win;
46 bool m_iconAdded;
47 wxIcon m_icon;
48 wxString m_strTooltip;
56194595 49
2bda0e17
KB
50};
51
52#endif
53 // _TASKBAR_H_