From 1bc53066489dfbd37deed0e9bb79b690f8fa29ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?W=C5=82odzimierz=20Skiba?= Date: Tue, 1 Jun 2004 16:24:57 +0000 Subject: [PATCH] -1->wxID_ANY, TRUE->true replacements. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27559 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- samples/mobile/styles/styles.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/samples/mobile/styles/styles.cpp b/samples/mobile/styles/styles.cpp index cd92e50fe5..14bc753390 100644 --- a/samples/mobile/styles/styles.cpp +++ b/samples/mobile/styles/styles.cpp @@ -48,9 +48,9 @@ MyFrame::MyFrame( wxWindow *parent, wxWindowID id, const wxString &title, SetBackground( bitmap, 0, wxTILE ); #endif - new wxStaticText( this, -1, _T("This is text"), wxPoint( 20,50 ) ); + new wxStaticText( this, wxID_ANY, _T("This is text"), wxPoint( 20,50 ) ); - new wxCheckBox( this, -1, _T("This is a checkbox"), wxPoint( 20,70 ) ); + new wxCheckBox( this, wxID_ANY, _T("This is a checkbox"), wxPoint( 20,70 ) ); } void MyFrame::CreateMyMenuBar() @@ -72,7 +72,7 @@ void MyFrame::OnAbout( wxCommandEvent &WXUNUSED(event) ) void MyFrame::OnQuit( wxCommandEvent &WXUNUSED(event) ) { - Close( TRUE ); + Close( true ); } void MyFrame::OnCloseWindow( wxCloseEvent &WXUNUSED(event) ) @@ -97,10 +97,10 @@ bool MyApp::OnInit() SetVendorName(_T("Free world")); SetAppName(_T("Styles")); - MyFrame *frame = new MyFrame( NULL, -1, _T("Styles"), wxPoint(20,20), wxSize(500,340) ); - frame->Show( TRUE ); + MyFrame *frame = new MyFrame( NULL, wxID_ANY, _T("Styles"), wxPoint(20,20), wxSize(500,340) ); + frame->Show( true ); - return TRUE; + return true; } int MyApp::OnExit() -- 2.45.2