]> git.saurik.com Git - wxWidgets.git/blame - src/palmos/taskbar.cpp
using new API (no visual difference)
[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
ffecfa5a
JS
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
ffecfa5a
JS
33IMPLEMENT_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
47class wxTaskBarIconWindow : public wxFrame
48{
49public:
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
62private:
63 wxTaskBarIcon *m_icon;
64};
65
66// ----------------------------------------------------------------------------
67// wxTaskBarIcon
68// ----------------------------------------------------------------------------
69
70wxTaskBarIcon::wxTaskBarIcon()
71{
72}
73
74wxTaskBarIcon::~wxTaskBarIcon()
75{
76}
77
78// Operations
79bool wxTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& tooltip)
80{
81 return false;
82}
83
84bool wxTaskBarIcon::RemoveIcon()
85{
e2731512 86 return false;
ffecfa5a
JS
87}
88
89bool wxTaskBarIcon::PopupMenu(wxMenu *menu)
90{
e2731512 91 return false;
ffecfa5a
JS
92}
93
ffecfa5a
JS
94void wxTaskBarIcon::RegisterWindowMessages()
95{
96}
97
98// ----------------------------------------------------------------------------
99// wxTaskBarIcon window proc
100// ----------------------------------------------------------------------------
101
102long wxTaskBarIcon::WindowProc(unsigned int msg,
103 unsigned int WXUNUSED(wParam),
104 long lParam)
105{
106 return 0;
107}
108
109#endif // __WIN95__
110