X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a236aa2058ccf3d36e9cafc20fa7375080c4be50..fb8d7eb7a880f1f2e32d8830f9c5e12b2536e05f:/src/univ/checklst.cpp diff --git a/src/univ/checklst.cpp b/src/univ/checklst.cpp index 3a85960386..c242e941c3 100644 --- a/src/univ/checklst.cpp +++ b/src/univ/checklst.cpp @@ -57,8 +57,6 @@ public: // implementation of wxCheckListBox // ============================================================================ -IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox, wxListBox) - // ---------------------------------------------------------------------------- // creation // ---------------------------------------------------------------------------- @@ -122,7 +120,7 @@ bool wxCheckListBox::Create(wxWindow *parent, bool wxCheckListBox::IsChecked(unsigned int item) const { wxCHECK_MSG( IsValid(item), false, - _T("invalid index in wxCheckListBox::IsChecked") ); + wxT("invalid index in wxCheckListBox::IsChecked") ); return m_checks[item] != 0; } @@ -130,7 +128,7 @@ bool wxCheckListBox::IsChecked(unsigned int item) const void wxCheckListBox::Check(unsigned int item, bool check) { wxCHECK_RET( IsValid(item), - _T("invalid index in wxCheckListBox::Check") ); + wxT("invalid index in wxCheckListBox::Check") ); // intermediate var is needed to avoid compiler warning with VC++ bool isChecked = m_checks[item] != 0; @@ -201,7 +199,7 @@ bool wxCheckListBox::PerformAction(const wxControlAction& action, { Check(sel, !IsChecked(sel)); - SendEvent(wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, sel); + SendEvent(wxEVT_CHECKLISTBOX, sel); } } else