X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/30dea05497c1f00d72d7dbf7f2f4818dfaa0e500..14b72bf5a6b575f2be880eadc3e7f0131afe889a:/samples/controls/controls.cpp diff --git a/samples/controls/controls.cpp b/samples/controls/controls.cpp index bd57a74f0a..a6fa25ad15 100644 --- a/samples/controls/controls.cpp +++ b/samples/controls/controls.cpp @@ -123,20 +123,6 @@ bool MyApp::OnInit(void) return TRUE; } -//---------------------------------------------------------------------- -// MyTextCtrl -//---------------------------------------------------------------------- - -BEGIN_EVENT_TABLE(MyTextCtrl, wxTextCtrl) - EVT_RIGHT_DOWN (MyTextCtrl::OnRightButton) -END_EVENT_TABLE() - -MyTextCtrl::MyTextCtrl( wxWindow *parent, wxWindowID id, const wxString &value, - const wxPoint &pos, const wxSize &size, int style ) : - wxTextCtrl( parent, id, value, pos, size, style ) -{ -} - //---------------------------------------------------------------------- // MyPanel //---------------------------------------------------------------------- @@ -386,7 +372,7 @@ END_EVENT_TABLE() MyFrame::MyFrame(wxFrame *frame, char *title, int x, int y, int w, int h): wxFrame(frame, -1, title, wxPoint(x, y), wxSize(w, h)) { - (void*) new MyPanel( this, 10, 10, 300, 100 ); + (void)new MyPanel( this, 10, 10, 300, 100 ); } void MyFrame::OnQuit (wxCommandEvent& WXUNUSED(event) )