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