X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2bda0e173844e8e0f8acf4e8ad8b5c26e5c6fe5d..9406d962ccf50d63f163896a2dd94123a2a8664a:/src/msw/checklst.cpp?ds=sidebyside diff --git a/src/msw/checklst.cpp b/src/msw/checklst.cpp index a04d7689aa..e388e1fb2d 100644 --- a/src/msw/checklst.cpp +++ b/src/msw/checklst.cpp @@ -24,6 +24,8 @@ #pragma hdrstop #endif +#if USE_OWNER_DRAWN + #include #include "wx/ownerdrw.h" @@ -217,10 +219,10 @@ wxCheckListBox::wxCheckListBox() : wxListBox() } // ctor which creates the associated control -wxCheckListBox::wxCheckListBox(wxWindow *parent, const wxWindowID id, +wxCheckListBox::wxCheckListBox(wxWindow *parent, wxWindowID id, const wxPoint& pos, const wxSize& size, - const int nStrings, const wxString choices[], - const long style, const wxValidator& val, + int nStrings, const wxString choices[], + long style, const wxValidator& val, const wxString& name) // , const wxFont& font) // don't use ctor with arguments! we must call Create() // ourselves from here. @@ -292,7 +294,7 @@ void wxCheckListBox::OnChar(wxKeyEvent& event) void wxCheckListBox::OnLeftClick(wxMouseEvent& event) { // clicking on the item selects it, clicking on the checkmark toggles - if ( (uint)event.GetX() <= wxOwnerDrawn::GetDefaultMarginWidth() ) { + if ( event.GetX() <= wxOwnerDrawn::GetDefaultMarginWidth() ) { // # better use LB_ITEMFROMPOINT perhaps? uint nItem = ((uint)event.GetY()) / m_nItemHeight; if ( nItem < (uint)m_noItems ) @@ -304,3 +306,6 @@ void wxCheckListBox::OnLeftClick(wxMouseEvent& event) event.Skip(); } } + +#endif +