]> git.saurik.com Git - wxWidgets.git/blame - include/wx/stubs/checklst.h
added combobox editor
[wxWidgets.git] / include / wx / stubs / checklst.h
CommitLineData
7c23a0b0
JS
1///////////////////////////////////////////////////////////////////////////////
2// Name: checklst.h
3// Purpose: wxCheckListBox class - a listbox with checkable items
4// Note: this is an optional class.
5// Author: AUTHOR
6// Modified by:
7// Created: ??/??/98
8// RCS-ID: $Id$
9// Copyright: (c) AUTHOR
10// Licence: wxWindows licence
11///////////////////////////////////////////////////////////////////////////////
12
13#ifndef _WX_CHECKLST_H_
14#define _WX_CHECKLST_H_
15
16#ifdef __GNUG__
17#pragma interface "checklst.h"
18#endif
19
34138703
JS
20#include "wx/listbox.h"
21
c86f1403 22typedef unsigned int size_t;
7c23a0b0 23
7c23a0b0
JS
24class wxCheckListBox : public wxListBox
25{
26 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
27public:
28 // ctors
29 wxCheckListBox();
30 wxCheckListBox(wxWindow *parent, wxWindowID id,
31 const wxPoint& pos = wxDefaultPosition,
32 const wxSize& size = wxDefaultSize,
33 int nStrings = 0,
34 const wxString choices[] = NULL,
35 long style = 0,
36 const wxValidator& validator = wxDefaultValidator,
37 const wxString& name = wxListBoxNameStr);
38
39 // items may be checked
c86f1403
VZ
40 bool IsChecked(size_t uiIndex) const;
41 void Check(size_t uiIndex, bool bCheck = TRUE);
7c23a0b0 42
7c23a0b0
JS
43 DECLARE_EVENT_TABLE()
44};
45
46#endif
47 // _WX_CHECKLST_H_