Minor cleaning.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41858 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -75,9 +75,7 @@ bool MyApp::OnInit()
|
|||||||
{
|
{
|
||||||
// Create the main frame window
|
// Create the main frame window
|
||||||
|
|
||||||
MyFrame* frame = new MyFrame((wxFrame *)NULL, -1, _T("Animation Demo"),
|
MyFrame* frame = new MyFrame((wxFrame *)NULL, wxID_ANY, _T("Animation Demo"));
|
||||||
wxPoint(-1, -1), wxSize(500, 400),
|
|
||||||
wxDEFAULT_FRAME_STYLE);
|
|
||||||
|
|
||||||
// Give it an icon
|
// Give it an icon
|
||||||
frame->SetIcon(wxICON(sample));
|
frame->SetIcon(wxICON(sample));
|
||||||
@@ -246,7 +244,7 @@ END_EVENT_TABLE()
|
|||||||
|
|
||||||
// Define a constructor for my canvas
|
// Define a constructor for my canvas
|
||||||
MyCanvas::MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size)
|
MyCanvas::MyCanvas(wxWindow *parent, const wxPoint& pos, const wxSize& size)
|
||||||
: wxScrolledWindow(parent, -1, pos, size,
|
: wxScrolledWindow(parent, wxID_ANY, pos, size,
|
||||||
wxSUNKEN_BORDER |
|
wxSUNKEN_BORDER |
|
||||||
wxNO_FULL_REPAINT_ON_RESIZE |
|
wxNO_FULL_REPAINT_ON_RESIZE |
|
||||||
wxVSCROLL | wxHSCROLL)
|
wxVSCROLL | wxHSCROLL)
|
||||||
|
Reference in New Issue
Block a user