#include "wx/settings.h"
#include "wx/dcmemory.h"
#include "wx/msw/checklst.h"
+#include "wx/log.h"
#include <windows.h>
#include <windowsx.h>
wxOwnerDrawn *wxCheckListBox::CreateItem(size_t nIndex)
{
wxCheckListBoxItem *pItem = new wxCheckListBoxItem(this, nIndex);
- if ( m_windowFont.Ok() )
- pItem->SetFont(m_windowFont);
+ if ( m_font.Ok() )
+ pItem->SetFont(m_font);
return pItem;
}
if ( event.KeyCode() == WXK_SPACE )
GetItem(GetSelection())->Toggle();
else
- wxListBox::OnChar(event);
+ event.Skip();
}
void wxCheckListBox::OnLeftClick(wxMouseEvent& event)