]> git.saurik.com Git - wxWidgets.git/blame_incremental - src/palmos/taskbar.cpp
No longer use semi-static IDs for wxPropertyGrid embedded controls and tool bar tools.
[wxWidgets.git] / src / palmos / taskbar.cpp
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////
2// File: src/palmos/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#if wxUSE_TASKBARICON
21
22#ifndef WX_PRECOMP
23 #include "wx/window.h"
24 #include "wx/frame.h"
25 #include "wx/utils.h"
26 #include "wx/menu.h"
27#endif
28
29#if defined(__WIN95__)
30
31#include <string.h>
32#include "wx/taskbar.h"
33
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{
87 return false;
88}
89
90bool wxTaskBarIcon::PopupMenu(wxMenu *menu)
91{
92 return false;
93}
94
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__
111
112#endif // wxUSE_TASKBARICON