]> git.saurik.com Git - wxWidgets.git/blob - src/palmos/taskbar.cpp
factoring out Background setter
[wxWidgets.git] / src / palmos / taskbar.cpp
1 /////////////////////////////////////////////////////////////////////////
2 // File: taskbar.cpp
3 // Purpose: Implements wxTaskBarIcon class for manipulating icons on
4 // the task bar.
5 // Author: Julian Smart
6 // Modified by: Vaclav Slavik
7 // Created: 24/3/98
8 // RCS-ID: $Id$
9 // Copyright: (c)
10 // Licence: wxWindows licence
11 /////////////////////////////////////////////////////////////////////////
12
13 // For compilers that support precompilation, includes "wx.h".
14 #include "wx/wxprec.h"
15
16 #ifdef __BORLANDC__
17 #pragma hdrstop
18 #endif
19
20 #ifndef WX_PRECOMP
21 #include "wx/defs.h"
22 #include "wx/window.h"
23 #include "wx/frame.h"
24 #include "wx/utils.h"
25 #include "wx/menu.h"
26 #endif
27
28 #if defined(__WIN95__)
29
30 #include <string.h>
31 #include "wx/taskbar.h"
32
33 IMPLEMENT_DYNAMIC_CLASS(wxTaskBarIcon, wxEvtHandler)
34
35 // ============================================================================
36 // implementation
37 // ============================================================================
38
39 // ----------------------------------------------------------------------------
40 // wxTaskBarIconWindow: helper window
41 // ----------------------------------------------------------------------------
42
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
48 {
49 public:
50 wxTaskBarIconWindow(wxTaskBarIcon *icon)
51 : wxFrame(NULL, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0),
52 m_icon(icon)
53 {
54 }
55
56 WXLRESULT MSWWindowProc(WXUINT msg,
57 WXWPARAM wParam, WXLPARAM lParam)
58 {
59 return 0;
60 }
61
62 private:
63 wxTaskBarIcon *m_icon;
64 };
65
66 // ----------------------------------------------------------------------------
67 // wxTaskBarIcon
68 // ----------------------------------------------------------------------------
69
70 wxTaskBarIcon::wxTaskBarIcon()
71 {
72 }
73
74 wxTaskBarIcon::~wxTaskBarIcon()
75 {
76 }
77
78 // Operations
79 bool wxTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& tooltip)
80 {
81 return false;
82 }
83
84 bool wxTaskBarIcon::RemoveIcon()
85 {
86 return false;
87 }
88
89 bool wxTaskBarIcon::PopupMenu(wxMenu *menu)
90 {
91 return false;
92 }
93
94 void wxTaskBarIcon::RegisterWindowMessages()
95 {
96 }
97
98 // ----------------------------------------------------------------------------
99 // wxTaskBarIcon window proc
100 // ----------------------------------------------------------------------------
101
102 long wxTaskBarIcon::WindowProc(unsigned int msg,
103 unsigned int WXUNUSED(wParam),
104 long lParam)
105 {
106 return 0;
107 }
108
109 #endif // __WIN95__
110