X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c3d6e0aa29c2973e05bcd6b0f082242b7cf5b04f..686ca1b5d4867bca6c82a82078fd26291c6e6659:/samples/animate/anitest.cpp diff --git a/samples/animate/anitest.cpp b/samples/animate/anitest.cpp index 8f433e3556..551a36aa4d 100644 --- a/samples/animate/anitest.cpp +++ b/samples/animate/anitest.cpp @@ -75,8 +75,8 @@ bool MyApp::OnInit() { // Create the main frame window - MyFrame* frame = new MyFrame((wxFrame *)NULL, -1, _T("Animation Demo"), - wxPoint(-1, -1), wxSize(500, 400), + MyFrame* frame = new MyFrame((wxFrame *)NULL, wxID_ANY, _T("Animation Demo"), + wxDefaultPosition, wxSize(500, 400), wxDEFAULT_FRAME_STYLE); // Give it an icon @@ -246,7 +246,7 @@ END_EVENT_TABLE() // Define a constructor for my canvas MyCanvas::MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size) - : wxScrolledWindow(parent, -1, pos, size, + : wxScrolledWindow(parent, wxID_ANY, pos, size, wxSUNKEN_BORDER | wxNO_FULL_REPAINT_ON_RESIZE | wxVSCROLL | wxHSCROLL)