]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/taskbar.cpp
1 /////////////////////////////////////////////////////////////////////////
3 // Purpose: Implements wxTaskBarIcon class for manipulating icons on
5 // Author: Julian Smart
6 // Modified by: Vaclav Slavik
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////
13 // For compilers that support precompilation, includes "wx.h".
14 #include "wx/wxprec.h"
22 #include "wx/window.h"
28 #if defined(__WIN95__)
31 #include "wx/taskbar.h"
33 IMPLEMENT_DYNAMIC_CLASS(wxTaskBarIcon
, wxEvtHandler
)
35 // ============================================================================
37 // ============================================================================
39 // ----------------------------------------------------------------------------
40 // wxTaskBarIconWindow: helper window
41 // ----------------------------------------------------------------------------
43 // NB: this class serves two purposes:
44 // 1. win32 needs a HWND associated with taskbar icon, this provides it
45 // 2. we need wxTopLevelWindow so that the app doesn't exit when
46 // last frame is closed but there still is a taskbar icon
47 class wxTaskBarIconWindow
: public wxFrame
50 wxTaskBarIconWindow(wxTaskBarIcon
*icon
)
51 : wxFrame(NULL
, wxID_ANY
, wxEmptyString
, wxDefaultPosition
, wxDefaultSize
, 0),
56 WXLRESULT
MSWWindowProc(WXUINT msg
,
57 WXWPARAM wParam
, WXLPARAM lParam
)
63 wxTaskBarIcon
*m_icon
;
66 // ----------------------------------------------------------------------------
68 // ----------------------------------------------------------------------------
70 wxTaskBarIcon::wxTaskBarIcon()
74 wxTaskBarIcon::~wxTaskBarIcon()
79 bool wxTaskBarIcon::SetIcon(const wxIcon
& icon
, const wxString
& tooltip
)
84 bool wxTaskBarIcon::RemoveIcon()
89 bool wxTaskBarIcon::PopupMenu(wxMenu
*menu
)
94 void wxTaskBarIcon::RegisterWindowMessages()
98 // ----------------------------------------------------------------------------
99 // wxTaskBarIcon window proc
100 // ----------------------------------------------------------------------------
102 long wxTaskBarIcon::WindowProc(unsigned int msg
,
103 unsigned int WXUNUSED(wParam
),