-1->wxID_ANY and TRUE->true replacements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -89,7 +89,7 @@ private:
|
|||||||
class VScrollWindow : public wxVScrolledWindow
|
class VScrollWindow : public wxVScrolledWindow
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VScrollWindow(wxFrame *frame) : wxVScrolledWindow(frame, -1)
|
VScrollWindow(wxFrame *frame) : wxVScrolledWindow(frame, wxID_ANY)
|
||||||
{
|
{
|
||||||
m_frame = frame;
|
m_frame = frame;
|
||||||
|
|
||||||
@@ -216,10 +216,10 @@ bool VScrollApp::OnInit()
|
|||||||
|
|
||||||
// and show it (the frames, unlike simple controls, are not shown when
|
// and show it (the frames, unlike simple controls, are not shown when
|
||||||
// created initially)
|
// created initially)
|
||||||
frame->Show(TRUE);
|
frame->Show(true);
|
||||||
|
|
||||||
// ok
|
// ok
|
||||||
return TRUE;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
@@ -229,7 +229,7 @@ bool VScrollApp::OnInit()
|
|||||||
// frame constructor
|
// frame constructor
|
||||||
VScrollFrame::VScrollFrame()
|
VScrollFrame::VScrollFrame()
|
||||||
: wxFrame(NULL,
|
: wxFrame(NULL,
|
||||||
-1,
|
wxID_ANY,
|
||||||
_T("VScroll wxWidgets Sample"),
|
_T("VScroll wxWidgets Sample"),
|
||||||
wxDefaultPosition,
|
wxDefaultPosition,
|
||||||
wxSize(400, 350))
|
wxSize(400, 350))
|
||||||
@@ -272,8 +272,8 @@ VScrollFrame::VScrollFrame()
|
|||||||
|
|
||||||
void VScrollFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
|
void VScrollFrame::OnQuit(wxCommandEvent& WXUNUSED(event))
|
||||||
{
|
{
|
||||||
// TRUE is to force the frame to close
|
// true is to force the frame to close
|
||||||
Close(TRUE);
|
Close(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void VScrollFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
void VScrollFrame::OnAbout(wxCommandEvent& WXUNUSED(event))
|
||||||
|
Reference in New Issue
Block a user