]>
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 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
14 #pragma implementation "taskbar.h"
17 // For compilers that support precompilation, includes "wx.h".
18 #include "wx/wxprec.h"
26 #include "wx/window.h"
32 #if defined(__WIN95__)
35 #include "wx/taskbar.h"
37 IMPLEMENT_DYNAMIC_CLASS(wxTaskBarIcon
, wxEvtHandler
)
39 // ============================================================================
41 // ============================================================================
43 // ----------------------------------------------------------------------------
44 // wxTaskBarIconWindow: helper window
45 // ----------------------------------------------------------------------------
47 // NB: this class serves two purposes:
48 // 1. win32 needs a HWND associated with taskbar icon, this provides it
49 // 2. we need wxTopLevelWindow so that the app doesn't exit when
50 // last frame is closed but there still is a taskbar icon
51 class wxTaskBarIconWindow
: public wxFrame
54 wxTaskBarIconWindow(wxTaskBarIcon
*icon
)
55 : wxFrame(NULL
, wxID_ANY
, wxEmptyString
, wxDefaultPosition
, wxDefaultSize
, 0),
60 WXLRESULT
MSWWindowProc(WXUINT msg
,
61 WXWPARAM wParam
, WXLPARAM lParam
)
67 wxTaskBarIcon
*m_icon
;
70 // ----------------------------------------------------------------------------
72 // ----------------------------------------------------------------------------
74 wxTaskBarIcon::wxTaskBarIcon()
78 wxTaskBarIcon::~wxTaskBarIcon()
83 bool wxTaskBarIcon::SetIcon(const wxIcon
& icon
, const wxString
& tooltip
)
88 bool wxTaskBarIcon::RemoveIcon()
93 bool wxTaskBarIcon::PopupMenu(wxMenu
*menu
)
98 void wxTaskBarIcon::RegisterWindowMessages()
102 // ----------------------------------------------------------------------------
103 // wxTaskBarIcon window proc
104 // ----------------------------------------------------------------------------
106 long wxTaskBarIcon::WindowProc(unsigned int msg
,
107 unsigned int WXUNUSED(wParam
),