X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/70d26c3f4ffb24d50457d405c9595fd23f9e5b7c..d9207cc82635a45b05d1c56868efa680dc2094be:/samples/ipc/client.h?ds=sidebyside diff --git a/samples/ipc/client.h b/samples/ipc/client.h index 8017a29def..8dcdc7dbe4 100644 --- a/samples/ipc/client.h +++ b/samples/ipc/client.h @@ -12,40 +12,42 @@ // Define a new application class MyApp: public wxApp { - public: - bool OnInit(); - int OnExit(); +public: + virtual bool OnInit(); + virtual int OnExit(); }; // Define a new frame class MyFrame: public wxFrame { - public: - wxPanel *panel; +public: + MyFrame(wxFrame *frame, const wxString& title); - MyFrame(wxFrame *frame, const wxString& title, const wxPoint& pos, const wxSize& size); - void OnCloseWindow(wxCloseEvent& event); void OnExit(wxCommandEvent& event); void OnExecute(wxCommandEvent& event); void OnPoke(wxCommandEvent& event); void OnRequest(wxCommandEvent& event); -DECLARE_EVENT_TABLE() + +private: + wxPanel *panel; + + DECLARE_EVENT_TABLE() }; class MyConnection: public wxConnection { - public: - MyConnection(); - ~MyConnection(); - bool OnAdvise(const wxString& topic, const wxString& item, char *data, int size, wxIPCFormat format); - bool OnDisconnect(); +public: + MyConnection(); + ~MyConnection(); + + bool OnAdvise(const wxString& topic, const wxString& item, char *data, int size, wxIPCFormat format); + bool OnDisconnect(); }; class MyClient: public wxClient { - public: - MyClient(); - wxConnectionBase *OnMakeConnection(); +public: + wxConnectionBase *OnMakeConnection(); }; #define CLIENT_QUIT wxID_EXIT