]>
git.saurik.com Git - wxWidgets.git/blob - src/palmos/taskbar.cpp
1 /////////////////////////////////////////////////////////////////////////
2 // File: src/palmos/taskbar.cpp
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"
23 #include "wx/window.h"
29 #if defined(__WIN95__)
32 #include "wx/taskbar.h"
34 IMPLEMENT_DYNAMIC_CLASS(wxTaskBarIcon
, wxEvtHandler
)
36 // ============================================================================
38 // ============================================================================
40 // ----------------------------------------------------------------------------
41 // wxTaskBarIconWindow: helper window
42 // ----------------------------------------------------------------------------
44 // NB: this class serves two purposes:
45 // 1. win32 needs a HWND associated with taskbar icon, this provides it
46 // 2. we need wxTopLevelWindow so that the app doesn't exit when
47 // last frame is closed but there still is a taskbar icon
48 class wxTaskBarIconWindow
: public wxFrame
51 wxTaskBarIconWindow(wxTaskBarIcon
*icon
)
52 : wxFrame(NULL
, wxID_ANY
, wxEmptyString
, wxDefaultPosition
, wxDefaultSize
, 0),
57 WXLRESULT
MSWWindowProc(WXUINT msg
,
58 WXWPARAM wParam
, WXLPARAM lParam
)
64 wxTaskBarIcon
*m_icon
;
67 // ----------------------------------------------------------------------------
69 // ----------------------------------------------------------------------------
71 wxTaskBarIcon::wxTaskBarIcon()
75 wxTaskBarIcon::~wxTaskBarIcon()
80 bool wxTaskBarIcon::SetIcon(const wxIcon
& icon
, const wxString
& tooltip
)
85 bool wxTaskBarIcon::RemoveIcon()
90 bool wxTaskBarIcon::PopupMenu(wxMenu
*menu
)
95 void wxTaskBarIcon::RegisterWindowMessages()
99 // ----------------------------------------------------------------------------
100 // wxTaskBarIcon window proc
101 // ----------------------------------------------------------------------------
103 long wxTaskBarIcon::WindowProc(unsigned int msg
,
104 unsigned int WXUNUSED(wParam
),
112 #endif // wxUSE_TASKBARICON