1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: implementation of wxCheckListBox class
8 // Copyright: (c) AUTHOR
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
12 // ============================================================================
13 // headers & declarations
14 // ============================================================================
17 #pragma implementation "checklst.h"
22 #if wxUSE_CHECKLISTBOX
24 #include "wx/checklst.h"
26 // ============================================================================
28 // ============================================================================
30 #if !USE_SHARED_LIBRARY
31 IMPLEMENT_DYNAMIC_CLASS(wxCheckListBox
, wxListBox
)
34 // ----------------------------------------------------------------------------
35 // implementation of wxCheckListBox class
36 // ----------------------------------------------------------------------------
40 BEGIN_EVENT_TABLE(wxCheckListBox
, wxListBox
)
46 // def ctor: use Create() to really create the control
47 wxCheckListBox::wxCheckListBox() : wxCheckListBoxBase()
51 // ctor which creates the associated control
52 wxCheckListBox::wxCheckListBox(wxWindow
*parent
, wxWindowID id
,
53 const wxPoint
& pos
, const wxSize
& size
,
54 int nStrings
, const wxString choices
[],
55 long style
, const wxValidator
& val
,
57 : wxCheckListBoxBase()
59 // TODO: you'll probably need a separate Create instead of using
60 // the wxListBox one as here.
61 Create(parent
, id
, pos
, size
, nStrings
, choices
, style
|wxLB_OWNERDRAW
, val
, name
);
67 bool wxCheckListBox::IsChecked(size_t uiIndex
) const
73 void wxCheckListBox::Check(size_t uiIndex
, bool bCheck
)
78 #endif // wxUSE_CHECKLISTBOX