Skip to content

Commit da28de2

Browse files
committed
Some tweaks.
1 parent 59b7fa8 commit da28de2

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test cases/frameworks/9 wxwidgets/wxprog.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ EVT_MENU(wxID_ABOUT, MyFrame::OnAbout)
77
wxEND_EVENT_TABLE()
88

99
bool MyApp::OnInit() {
10-
MyFrame *frame = new MyFrame( "Hello World", wxPoint(50, 50), wxSize(450, 340) );
10+
MyFrame *frame = new MyFrame("Hello World", wxPoint(50, 50), wxSize(450, 340));
1111
frame->Show( true );
1212
return true;
1313
}
@@ -22,24 +22,23 @@ MyFrame::MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size)
2222
wxMenu *menuHelp = new wxMenu;
2323
menuHelp->Append(wxID_ABOUT);
2424
wxMenuBar *menuBar = new wxMenuBar;
25-
menuBar->Append( menuFile, "&File" );
26-
menuBar->Append( menuHelp, "&Help" );
27-
SetMenuBar( menuBar );
25+
menuBar->Append(menuFile, "&File");
26+
menuBar->Append(menuHelp, "&Help");
27+
SetMenuBar(menuBar);
2828
CreateStatusBar();
29-
SetStatusText( "Welcome to wxWidgets!" );
29+
SetStatusText("This is status." );
3030
}
3131

3232
void MyFrame::OnExit(wxCommandEvent& event) {
3333
Close( true );
3434
}
3535

3636
void MyFrame::OnAbout(wxCommandEvent& event) {
37-
wxMessageBox( "This is a wxWidgets' Hello world sample",
38-
"About Hello World", wxOK | wxICON_INFORMATION );
37+
wxMessageBox( "Some text", wxOK | wxICON_INFORMATION );
3938
}
4039

4140
void MyFrame::OnHello(wxCommandEvent& event) {
42-
wxLogMessage("Hello world from wxWidgets!");
41+
wxLogMessage("Some more text.");
4342
}
4443

4544
#if 0

0 commit comments

Comments
 (0)