MyFrame(wxFrame *frame, const wxString& title);
void OnListBoxClick(wxCommandEvent& event);
+ void OnExit(wxCommandEvent& event);
private:
wxPanel *panel;
class MyConnection : public wxConnection
{
public:
- MyConnection(char *buf, int size);
+ MyConnection();
~MyConnection();
- bool OnExecute(const wxString& topic, char *data, int size, wxIPCFormat format);
- char *OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format);
- bool OnPoke(const wxString& topic, const wxString& item, char *data, int size, wxIPCFormat format);
+ bool OnExecute(const wxString& topic, wxChar *data, int size, wxIPCFormat format);
+ wxChar *OnRequest(const wxString& topic, const wxString& item, int *size, wxIPCFormat format);
+ bool OnPoke(const wxString& topic, const wxString& item, wxChar *data, int size, wxIPCFormat format);
bool OnStartAdvise(const wxString& topic, const wxString& item);
-private:
IPCDialogBox *dialog;
};
const wxPoint& pos,
const wxSize& size,
MyConnection *the_connection);
+ ~IPCDialogBox( );
void OnQuit(wxCommandEvent& event);
-private:
MyConnection *m_connection;
DECLARE_EVENT_TABLE()
};
-#define SERVER_QUIT wxID_EXIT
+#define SERVER_EXIT wxID_EXIT
#define SERVER_LISTBOX 500
#define SERVER_QUIT_BUTTON 501