]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/checklst.cpp
wxWindow::FindFocus() doesn't exist in wxGTK - #ifdef'd out
[wxWidgets.git] / src / msw / checklst.cpp
index a04d7689aa54ee103c93fda57c6b76ee42728010..e388e1fb2d51e5c7270b0238caedfd5ee0da8573 100644 (file)
@@ -24,6 +24,8 @@
 #pragma hdrstop
 #endif
 
+#if USE_OWNER_DRAWN
+
 #include <windows.h>
 
 #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
+