From: Włodzimierz Skiba Date: Wed, 2 Jun 2004 17:13:19 +0000 (+0000) Subject: -1->wxID_ANY, TRUE->true and FALSE->false replacements. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/a67fad5e116f9da2b53de8d2ff74e273082bc41f?ds=inline -1->wxID_ANY, TRUE->true and FALSE->false replacements. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27586 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/richedit/kbList.h b/samples/richedit/kbList.h index f69bf25070..6a1cca93ee 100644 --- a/samples/richedit/kbList.h +++ b/samples/richedit/kbList.h @@ -277,7 +277,7 @@ public: \ /* the cast is needed for MS VC++ 5.0 */ \ { return (type *)((kbList::iterator *)this)->operator*() ; } \ }; \ - inline name(bool ownsEntriesFlag = TRUE) \ + inline name(bool ownsEntriesFlag = true) \ : kbList(ownsEntriesFlag) {} \ \ inline type *pop_back(void) \ diff --git a/samples/richedit/wxLayout.cpp b/samples/richedit/wxLayout.cpp index a709885965..5453000787 100644 --- a/samples/richedit/wxLayout.cpp +++ b/samples/richedit/wxLayout.cpp @@ -66,8 +66,8 @@ BEGIN_EVENT_TABLE(MyFrame,wxFrame) EVT_MENU(ID_PREVIEW_PS, MyFrame::OnPrintPreviewPS) EVT_MENU(ID_PRINT_SETUP_PS, MyFrame::OnPrintSetupPS) EVT_MENU(ID_PAGE_SETUP_PS, MyFrame::OnPageSetupPS) - EVT_MENU (-1, MyFrame::OnCommand) - EVT_COMMAND (-1,-1, MyFrame::OnCommand) + EVT_MENU (wxID_ANY, MyFrame::OnCommand) + EVT_COMMAND (wxID_ANY,wxID_ANY, MyFrame::OnCommand) EVT_CHAR ( wxLayoutWindow::OnChar ) END_EVENT_TABLE() diff --git a/samples/richedit/wxlwindow.cpp b/samples/richedit/wxlwindow.cpp index f191fec414..018e4becaa 100644 --- a/samples/richedit/wxlwindow.cpp +++ b/samples/richedit/wxlwindow.cpp @@ -146,7 +146,7 @@ static bool IsDirectionKey(long keyCode); // ---------------------------------------------------------------------------- wxLayoutWindow::wxLayoutWindow(wxWindow *parent) - : wxScrolledWindow(parent, -1, + : wxScrolledWindow(parent, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxHSCROLL | wxVSCROLL | wxBORDER |