/////////////////////////////////////////////////////////////////////////////
-// Name: listbox.h
+// Name: wx/mac/classic/listbox.h
// Purpose: wxListBox class
// Author: Stefan Csomor
// Modified by:
#ifndef _WX_LISTBOX_H_
#define _WX_LISTBOX_H_
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
- #pragma interface "listbox.h"
-#endif
-
// ----------------------------------------------------------------------------
// simple types
// ----------------------------------------------------------------------------
const wxString& name = wxListBoxNameStr);
virtual ~wxListBox();
- virtual void Refresh(bool eraseBack = TRUE, const wxRect *rect = NULL);
-
+ virtual void Refresh(bool eraseBack = true, const wxRect *rect = NULL);
+
// implement base class pure virtuals
virtual void Clear();
virtual void Delete(int n);
- virtual int GetCount() const;
+ virtual size_t GetCount() const;
virtual wxString GetString(int n) const;
virtual void SetString(int n, const wxString& s);
- virtual int FindString(const wxString& s) const;
+ virtual int FindString(const wxString& s, bool bCase = false) const;
virtual bool IsSelected(int n) const;
virtual void DoSetSelection(int n, bool select);
bool HasMultipleSelection() const;
// free memory (common part of Clear() and dtor)
- // prevent collision with some BSD definitions of macro Free()
+ // prevent collision with some BSD definitions of macro Free()
void FreeData();
- int m_noItems;
+ size_t m_noItems;
int m_selected;
wxString m_typeIn ;
long m_lastTypeIn ;