]> git.saurik.com Git - wxWidgets.git/blame - include/wx/mac/checklst.h
WINE is so fine.
[wxWidgets.git] / include / wx / mac / checklst.h
CommitLineData
0dbd6262
SC
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
20#include "wx/listbox.h"
21
22#ifndef __MWERKS__
23typedef unsigned int size_t;
24#endif
25
26class wxCheckListBox : public wxListBox
27{
28 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
29public:
30 // ctors
31 wxCheckListBox();
32 wxCheckListBox(wxWindow *parent, wxWindowID id,
33 const wxPoint& pos = wxDefaultPosition,
34 const wxSize& size = wxDefaultSize,
35 int nStrings = 0,
36 const wxString choices[] = NULL,
37 long style = 0,
38 const wxValidator& validator = wxDefaultValidator,
39 const wxString& name = wxListBoxNameStr);
40
41 // items may be checked
42 bool IsChecked(size_t uiIndex) const;
43 void Check(size_t uiIndex, bool bCheck = TRUE);
44
45 DECLARE_EVENT_TABLE()
46};
47
48#endif
49 // _WX_CHECKLST_H_