git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27528
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
class VScrollWindow : public wxVScrolledWindow
{
public:
class VScrollWindow : public wxVScrolledWindow
{
public:
- VScrollWindow(wxFrame *frame) : wxVScrolledWindow(frame, -1)
+ VScrollWindow(wxFrame *frame) : wxVScrolledWindow(frame, wxID_ANY)
// and show it (the frames, unlike simple controls, are not shown when
// created initially)
// and show it (the frames, unlike simple controls, are not shown when
// created initially)
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
// frame constructor
VScrollFrame::VScrollFrame()
: wxFrame(NULL,
// frame constructor
VScrollFrame::VScrollFrame()
: wxFrame(NULL,
_T("VScroll wxWidgets Sample"),
wxDefaultPosition,
wxSize(400, 350))
_T("VScroll wxWidgets Sample"),
wxDefaultPosition,
wxSize(400, 350))
void VScrollFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
{
void VScrollFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
{
- // TRUE is to force the frame to close
- Close(TRUE);
+ // true is to force the frame to close
+ Close(true);
}
void VScrollFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
}
void VScrollFrame::OnAbout(wxCommandEvent& WXUNUSED(event))