]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/taskbar.cpp
some more build fix for wxPen/wxBrush style changes
[wxWidgets.git] / src / palmos / taskbar.cpp
CommitLineData
ffecfa5a 1/////////////////////////////////////////////////////////////////////////
7520f3da 2// File: src/palmos/taskbar.cpp
ffecfa5a
JS
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
ffecfa5a
JS
13// For compilers that support precompilation, includes "wx.h".
14#include "wx/wxprec.h"
15
16#ifdef __BORLANDC__
7520f3da 17 #pragma hdrstop
ffecfa5a
JS
18#endif
19
4f167b46
VZ
20#if wxUSE_TASKBARICON
21
ffecfa5a 22#ifndef WX_PRECOMP
7520f3da
WS
23 #include "wx/window.h"
24 #include "wx/frame.h"
25 #include "wx/utils.h"
26 #include "wx/menu.h"
ffecfa5a
JS
27#endif
28
29#if defined(__WIN95__)
30
31#include <string.h>
32#include "wx/taskbar.h"
33
ffecfa5a
JS
34IMPLEMENT_DYNAMIC_CLASS(wxTaskBarIcon, wxEvtHandler)
35
36// ============================================================================
37// implementation
38// ============================================================================
39
40// ----------------------------------------------------------------------------
41// wxTaskBarIconWindow: helper window
42// ----------------------------------------------------------------------------
43
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
48class wxTaskBarIconWindow : public wxFrame
49{
50public:
51 wxTaskBarIconWindow(wxTaskBarIcon *icon)
52 : wxFrame(NULL, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0),
53 m_icon(icon)
54 {
55 }
56
57 WXLRESULT MSWWindowProc(WXUINT msg,
58 WXWPARAM wParam, WXLPARAM lParam)
59 {
60 return 0;
61 }
62
63private:
64 wxTaskBarIcon *m_icon;
65};
66
67// ----------------------------------------------------------------------------
68// wxTaskBarIcon
69// ----------------------------------------------------------------------------
70
71wxTaskBarIcon::wxTaskBarIcon()
72{
73}
74
75wxTaskBarIcon::~wxTaskBarIcon()
76{
77}
78
79// Operations
80bool wxTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& tooltip)
81{
82 return false;
83}
84
85bool wxTaskBarIcon::RemoveIcon()
86{
e2731512 87 return false;
ffecfa5a
JS
88}
89
90bool wxTaskBarIcon::PopupMenu(wxMenu *menu)
91{
e2731512 92 return false;
ffecfa5a
JS
93}
94
ffecfa5a
JS
95void wxTaskBarIcon::RegisterWindowMessages()
96{
97}
98
99// ----------------------------------------------------------------------------
100// wxTaskBarIcon window proc
101// ----------------------------------------------------------------------------
102
103long wxTaskBarIcon::WindowProc(unsigned int msg,
104 unsigned int WXUNUSED(wParam),
105 long lParam)
106{
107 return 0;
108}
109
110#endif // __WIN95__
4f167b46
VZ
111
112#endif // wxUSE_TASKBARICON