#pragma hdrstop
#endif
+#if USE_OWNER_DRAWN
+
#include <windows.h>
#include "wx/ownerdrw.h"
}
// 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.
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 )
event.Skip();
}
}
+
+#endif
+