-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathtaskbar.cpp
More file actions
108 lines (87 loc) · 2.76 KB
/
taskbar.cpp
File metadata and controls
108 lines (87 loc) · 2.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
/////////////////////////////////////////////////////////////////////////
// File: src/palmos/taskbar.cpp
// Purpose: Implements wxTaskBarIcon class for manipulating icons on
// the task bar.
// Author: Julian Smart
// Modified by: Vaclav Slavik
// Created: 24/3/98
// RCS-ID: $Id: taskbar.cpp 38791 2006-04-18 09:56:17Z ABX $
// Copyright: (c)
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstop
#endif
#ifndef WX_PRECOMP
#include "wx/window.h"
#include "wx/frame.h"
#include "wx/utils.h"
#include "wx/menu.h"
#endif
#if defined(__WIN95__)
#include <string.h>
#include "wx/taskbar.h"
IMPLEMENT_DYNAMIC_CLASS(wxTaskBarIcon, wxEvtHandler)
// ============================================================================
// implementation
// ============================================================================
// ----------------------------------------------------------------------------
// wxTaskBarIconWindow: helper window
// ----------------------------------------------------------------------------
// NB: this class serves two purposes:
// 1. win32 needs a HWND associated with taskbar icon, this provides it
// 2. we need wxTopLevelWindow so that the app doesn't exit when
// last frame is closed but there still is a taskbar icon
class wxTaskBarIconWindow : public wxFrame
{
public:
wxTaskBarIconWindow(wxTaskBarIcon *icon)
: wxFrame(NULL, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0),
m_icon(icon)
{
}
WXLRESULT MSWWindowProc(WXUINT msg,
WXWPARAM wParam, WXLPARAM lParam)
{
return 0;
}
private:
wxTaskBarIcon *m_icon;
};
// ----------------------------------------------------------------------------
// wxTaskBarIcon
// ----------------------------------------------------------------------------
wxTaskBarIcon::wxTaskBarIcon()
{
}
wxTaskBarIcon::~wxTaskBarIcon()
{
}
// Operations
bool wxTaskBarIcon::SetIcon(const wxIcon& icon, const wxString& tooltip)
{
return false;
}
bool wxTaskBarIcon::RemoveIcon()
{
return false;
}
bool wxTaskBarIcon::PopupMenu(wxMenu *menu)
{
return false;
}
void wxTaskBarIcon::RegisterWindowMessages()
{
}
// ----------------------------------------------------------------------------
// wxTaskBarIcon window proc
// ----------------------------------------------------------------------------
long wxTaskBarIcon::WindowProc(unsigned int msg,
unsigned int WXUNUSED(wParam),
long lParam)
{
return 0;
}
#endif // __WIN95__