]>
git.saurik.com Git - wxWidgets.git/blob - samples/ipc/client.h
   1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     DDE sample: client 
   4 // Author:      Julian Smart 
   8 // Copyright:   (c) Julian Smart 
   9 // Licence:     wxWindows licence 
  10 ///////////////////////////////////////////////////////////////////////////// 
  12 // Define a new application 
  13 class MyApp
: public wxApp
 
  16     virtual bool OnInit(); 
  21 class MyFrame
: public wxFrame
 
  24     MyFrame(wxFrame 
*frame
, const wxString
& title
); 
  26     void OnExit(wxCommandEvent
& event
); 
  27     void OnExecute(wxCommandEvent
& event
); 
  28     void OnPoke(wxCommandEvent
& event
); 
  29     void OnRequest(wxCommandEvent
& event
); 
  37 class MyConnection
: public wxConnection
 
  43     bool OnAdvise(const wxString
& topic
, const wxString
& item
, char *data
, int size
, wxIPCFormat format
); 
  47 class MyClient
: public wxClient
 
  50     wxConnectionBase 
*OnMakeConnection(); 
  53 #define CLIENT_QUIT     wxID_EXIT 
  54 #define CLIENT_EXECUTE  2 
  55 #define CLIENT_REQUEST  3 
  57 #define CLIENT_LISTBOX  200