]> git.saurik.com Git - wxWidgets.git/blame - samples/ipc/client.h
fixed sending 2 events (normal and bogus cancel one) when ending to edit a tree ctrl...
[wxWidgets.git] / samples / ipc / client.h
CommitLineData
7921cf2b
JS
1/////////////////////////////////////////////////////////////////////////////
2// Name: client.h
3// Purpose: DDE sample: client
4// Author: Julian Smart
5// Modified by:
6// Created: 25/01/99
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12// Define a new application
13class MyApp: public wxApp
14{
4b89c618
VZ
15public:
16 virtual bool OnInit();
17 virtual int OnExit();
7921cf2b
JS
18};
19
20// Define a new frame
21class MyFrame: public wxFrame
22{
4b89c618
VZ
23public:
24 MyFrame(wxFrame *frame, const wxString& title);
7921cf2b 25
7921cf2b
JS
26 void OnExit(wxCommandEvent& event);
27 void OnExecute(wxCommandEvent& event);
28 void OnPoke(wxCommandEvent& event);
29 void OnRequest(wxCommandEvent& event);
4b89c618
VZ
30
31private:
32 wxPanel *panel;
33
34 DECLARE_EVENT_TABLE()
7921cf2b
JS
35};
36
37class MyConnection: public wxConnection
38{
4b89c618 39public:
600683ca 40 bool OnAdvise(const wxString& topic, const wxString& item, wxChar *data, int size, wxIPCFormat format);
4b89c618 41 bool OnDisconnect();
7921cf2b
JS
42};
43
44class MyClient: public wxClient
45{
4b89c618
VZ
46public:
47 wxConnectionBase *OnMakeConnection();
7921cf2b
JS
48};
49
50#define CLIENT_QUIT wxID_EXIT
51#define CLIENT_EXECUTE 2
52#define CLIENT_REQUEST 3
53#define CLIENT_POKE 4
54#define CLIENT_LISTBOX 200