]>
Commit | Line | Data |
---|---|---|
7c23a0b0 JS |
1 | ///////////////////////////////////////////////////////////////////////// |
2 | // File: taskbar.h | |
3 | // Purpose: Defines wxTaskBarIcon class for manipulating icons on the | |
4 | // task bar. Optional. | |
5 | // Author: AUTHOR | |
6 | // Modified by: | |
7 | // Created: ??/??/98 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) | |
10 | // Licence: wxWindows licence | |
11 | ///////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | #ifndef _WX_TASKBAR_H_ | |
14 | #define _WX_TASKBAR_H_ | |
15 | ||
16 | #ifdef __GNUG__ | |
17 | #pragma interface "taskbar.h" | |
18 | #endif | |
19 | ||
20 | #include <wx/list.h> | |
21 | #include <wx/icon.h> | |
22 | ||
23 | class wxTaskBarIcon: public wxObject | |
24 | { | |
25 | public: | |
26 | wxTaskBarIcon(); | |
27 | virtual ~wxTaskBarIcon(); | |
28 | ||
29 | // Accessors | |
30 | /* TODO: implementation | |
31 | inline WXHWND GetHWND() const { return m_hWnd; } | |
32 | inline bool IsOK() const { return (m_hWnd != 0) ; } | |
33 | inline bool IsIconInstalled() const { return m_iconAdded; } | |
34 | */ | |
35 | ||
36 | // Operations | |
37 | bool SetIcon(const wxIcon& icon, const wxString& tooltip = ""); | |
38 | bool RemoveIcon(); | |
39 | ||
40 | // Overridables | |
41 | virtual void OnMouseMove(); | |
42 | virtual void OnLButtonDown(); | |
43 | virtual void OnLButtonUp(); | |
44 | virtual void OnRButtonDown(); | |
45 | virtual void OnRButtonUp(); | |
46 | virtual void OnLButtonDClick(); | |
47 | virtual void OnRButtonDClick(); | |
48 | ||
49 | /* TODO | |
50 | // Implementation | |
51 | static wxTaskBarIcon* FindObjectForHWND(WXHWND hWnd); | |
52 | static void AddObject(wxTaskBarIcon* obj); | |
53 | static void RemoveObject(wxTaskBarIcon* obj); | |
54 | static bool RegisterWindowClass(); | |
55 | static WXHWND CreateTaskBarWindow(); | |
56 | long WindowProc( WXHWND hWnd, unsigned int msg, unsigned int wParam, long lParam ); | |
57 | */ | |
58 | ||
59 | // Data members | |
60 | protected: | |
61 | /* TODO: implementation | |
62 | WXHWND m_hWnd; | |
63 | static bool sm_registeredClass; | |
64 | static unsigned int sm_taskbarMsg; | |
65 | static wxList sm_taskBarIcons; | |
66 | */ | |
67 | ||
68 | bool m_iconAdded; | |
69 | }; | |
70 | ||
71 | #endif | |
72 | // _WX_TASKBAR_H_ |