]>
Commit | Line | Data |
---|---|---|
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 | |
13 | class MyApp: public wxApp | |
14 | { | |
15 | public: | |
16 | bool OnInit(); | |
17 | int OnExit(); | |
18 | }; | |
19 | ||
20 | // Define a new frame | |
21 | class MyFrame: public wxFrame | |
22 | { | |
23 | public: | |
24 | wxPanel *panel; | |
25 | ||
26 | MyFrame(wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size); | |
27 | void OnCloseWindow(wxCloseEvent& event); | |
28 | void OnExit(wxCommandEvent& event); | |
29 | void OnExecute(wxCommandEvent& event); | |
30 | void OnPoke(wxCommandEvent& event); | |
31 | void OnRequest(wxCommandEvent& event); | |
32 | DECLARE_EVENT_TABLE() | |
33 | }; | |
34 | ||
35 | class MyConnection: public wxConnection | |
36 | { | |
37 | public: | |
38 | MyConnection(); | |
39 | ~MyConnection(); | |
40 | bool OnAdvise(const wxString& topic, const wxString& item, char *data, int size, wxIPCFormat format); | |
41 | bool OnDisconnect(); | |
42 | }; | |
43 | ||
44 | class MyClient: public wxClient | |
45 | { | |
46 | public: | |
47 | MyClient(); | |
48 | wxConnectionBase *OnMakeConnection(); | |
49 | }; | |
50 | ||
51 | #define CLIENT_QUIT wxID_EXIT | |
52 | #define CLIENT_EXECUTE 2 | |
53 | #define CLIENT_REQUEST 3 | |
54 | #define CLIENT_POKE 4 | |
55 | #define CLIENT_LISTBOX 200 |