home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / wxos2240.zip / wxWindows-2.4.0 / include / wx / checklst.h < prev    next >
C/C++ Source or Header  |  2001-08-25  |  2KB  |  51 lines

  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name:        wx/checklst.h
  3. // Purpose:     wxCheckListBox class interface
  4. // Author:      Vadim Zeitlin
  5. // Modified by:
  6. // Created:     12.09.00
  7. // RCS-ID:      $Id: checklst.h,v 1.4 2001/08/25 14:52:25 VZ Exp $
  8. // Copyright:   (c) Vadim Zeitlin
  9. // Licence:     wxWindows licence
  10. ///////////////////////////////////////////////////////////////////////////////
  11.  
  12. #ifndef _WX_CHECKLST_H_BASE_
  13. #define _WX_CHECKLST_H_BASE_
  14.  
  15. #if wxUSE_CHECKLISTBOX
  16.  
  17. #include "wx/listbox.h"
  18.  
  19. // ----------------------------------------------------------------------------
  20. // wxCheckListBox: a listbox whose items may be checked
  21. // ----------------------------------------------------------------------------
  22.  
  23. class WXDLLEXPORT wxCheckListBoxBase : public wxListBox
  24. {
  25. public:
  26.     // check list box specific methods
  27.     virtual bool IsChecked(size_t item) const = 0;
  28.     virtual void Check(size_t item, bool check = TRUE) = 0;
  29. };
  30.  
  31. #if defined(__WXUNIVERSAL__)
  32.     #include "wx/univ/checklst.h"
  33. #elif defined(__WXMSW__)
  34.     #include "wx/msw/checklst.h"
  35. #elif defined(__WXMOTIF__)
  36.     #include "wx/motif/checklst.h"
  37. #elif defined(__WXGTK__)
  38.     #include "wx/gtk/checklst.h"
  39. #elif defined(__WXMAC__)
  40.     #include "wx/mac/checklst.h"
  41. #elif defined(__WXPM__)
  42.     #include "wx/os2/checklst.h"
  43. #elif defined(__WXSTUBS__)
  44.     #include "wx/stubs/checklst.h"
  45. #endif
  46.  
  47. #endif // wxUSE_CHECKLISTBOX
  48.  
  49. #endif
  50.     // _WX_CHECKLST_H_BASE_
  51.