class WXDLLEXPORT wxCheckListBox : public wxListBox
{
public:
- //
+ //
// Ctors
//
wxCheckListBox();
,int nStrings = 0
,const wxString asChoices[] = NULL
,long lStyle = 0
-#if wxUSE_VALIDATORS
,const wxValidator& rValidator = wxDefaultValidator
-#endif
,const wxString& rsName = wxListBoxNameStr
);
- //
+ //
// Override base class virtuals
//
virtual void Delete(int n);
virtual bool SetFont(const wxFont &rFont);
- //
+ //
// Items may be checked
//
bool IsChecked(size_t uiIndex) const;
,bool bCheck = TRUE
);
- //
+ //
// Accessors
//
size_t GetItemHeight(void) const { return m_nItemHeight; }
protected:
- //
+ //
// We create our items ourselves and they have non-standard size,
// so we need to override these functions
//
virtual wxOwnerDrawn* CreateItem(size_t n);
- virtual bool OS2OnMeasure(WXMEASUREITEMSTRUCT* pItem);
+ virtual long OS2OnMeasure(WXMEASUREITEMSTRUCT* pItem);
- //
+ //
// Pressing space or clicking the check box toggles the item
//
void OnChar(wxKeyEvent& rEvent);
,const wxItemResource* pParentResource
,const wxResourceTable* pTable = (const wxResourceTable *) NULL
)
- {
+ {
return(wxWindowBase::CreateItem( pChildResource
,pParentResource
,pTable