]> git.saurik.com Git - wxWidgets.git/blame - samples/taskbar/tbtest.h
* New wxStreams (to be documented), new classes: wxBufferedStreams,
[wxWidgets.git] / samples / taskbar / tbtest.h
CommitLineData
bbf1f0e5
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: tbtest.h
3// Purpose: wxTaskBarIcon sample
4// Author: Julian Smart
5// Modified by:
6// Created: 01/02/97
7// RCS-ID: $Id$
8// Copyright: (c)
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12class MyTaskBarIcon: public wxTaskBarIcon
13{
14public:
15 MyTaskBarIcon() {};
16
69ecd30f
RD
17 virtual void OnMouseMove(wxEvent&);
18 virtual void OnLButtonDown(wxEvent&);
19 virtual void OnLButtonUp(wxEvent&);
20 virtual void OnRButtonDown(wxEvent&);
21 virtual void OnRButtonUp(wxEvent&);
22 virtual void OnLButtonDClick(wxEvent&);
23 virtual void OnRButtonDClick(wxEvent&);
24
25 void OnMenuRestore(wxEvent&);
26 void OnMenuExit(wxEvent&);
27
28DECLARE_EVENT_TABLE()
bbf1f0e5
KB
29};
30
31
32// Define a new application
33class MyApp: public wxApp
34{
35public:
36 bool OnInit(void);
37protected:
38 MyTaskBarIcon m_taskBarIcon;
39};
40
41class MyDialog: public wxDialog
42{
43public:
44 MyDialog(wxWindow* parent, const wxWindowID id, const wxString& title,
45 const wxPoint& pos, const wxSize& size, const long windowStyle = wxDEFAULT_DIALOG_STYLE);
46
47 void OnOK(wxCommandEvent& event);
48 void OnExit(wxCommandEvent& event);
49 void OnCloseWindow(wxCloseEvent& event);
50 void Init(void);
51
52DECLARE_EVENT_TABLE()
53};
54
55