X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b62ca03d6f409732ca63c68a79b7ae81444222e5..2db1b1c0becfeb9d667670a7aab0a0873de6d5a2:/samples/ipc/server.cpp?ds=sidebyside diff --git a/samples/ipc/server.cpp b/samples/ipc/server.cpp index 44401f9718..562f9bb9f2 100644 --- a/samples/ipc/server.cpp +++ b/samples/ipc/server.cpp @@ -100,7 +100,9 @@ int MyApp::OnExit() MyFrame::MyFrame(wxFrame *frame, const wxString& title) : wxFrame(frame, wxID_ANY, title, wxDefaultPosition, wxSize(350, 250)) { +#if wxUSE_STATUSBAR CreateStatusBar(); +#endif // wxUSE_STATUSBAR // Give it an icon SetIcon(wxICON(mondrian)); @@ -118,7 +120,7 @@ MyFrame::MyFrame(wxFrame *frame, const wxString& title) SetMenuBar(menu_bar); // Make a listbox - wxListBox *list = new wxListBox(this, SERVER_LISTBOX, wxPoint(5, 5)); + wxListBox *list = new wxListBox(this, SERVER_LISTBOX); list->Append(_T("Apple")); list->Append(_T("Pear")); list->Append(_T("Orange")); @@ -198,7 +200,7 @@ MyConnection::MyConnection() : wxConnection() { dialog = new IPCDialogBox(wxTheApp->GetTopWindow(), _T("Connection"), - wxPoint(100, 100), wxSize(500, 500), this); + wxDefaultPosition, wxDefaultSize, this); dialog->Show(true); the_connection = this; }