]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/taskbar.h
1 /////////////////////////////////////////////////////////////////////////
3 // Purpose: Defines wxTaskBarIcon class for manipulating icons on the
5 // Author: Julian Smart
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////
17 #pragma interface "taskbar.h"
23 class wxTaskBarIcon
: public wxObject
27 virtual ~wxTaskBarIcon(void);
30 inline WXHWND
GetHWND() const { return m_hWnd
; }
31 inline bool IsOK() const { return (m_hWnd
!= 0) ; }
32 inline bool IsIconInstalled() const { return m_iconAdded
; }
35 bool SetIcon(const wxIcon
& icon
, const wxString
& tooltip
= "");
36 bool RemoveIcon(void);
39 virtual void OnMouseMove(void);
40 virtual void OnLButtonDown(void);
41 virtual void OnLButtonUp(void);
42 virtual void OnRButtonDown(void);
43 virtual void OnRButtonUp(void);
44 virtual void OnLButtonDClick(void);
45 virtual void OnRButtonDClick(void);
48 static wxTaskBarIcon
* FindObjectForHWND(WXHWND hWnd
);
49 static void AddObject(wxTaskBarIcon
* obj
);
50 static void RemoveObject(wxTaskBarIcon
* obj
);
51 static bool RegisterWindowClass();
52 static WXHWND
CreateTaskBarWindow();
53 long WindowProc( WXHWND hWnd
, unsigned int msg
, unsigned int wParam
, long lParam
);
59 static wxList sm_taskBarIcons
;
60 static bool sm_registeredClass
;
61 static unsigned int sm_taskbarMsg
;