]> git.saurik.com Git - wxWidgets.git/commitdiff
wxListbox::GetSelections() now takes a wxArrayInt instead of "int **"
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Jun 1998 21:54:19 +0000 (21:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Jun 1998 21:54:19 +0000 (21:54 +0000)
(as under wxGTK)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@124 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/msw/listbox.h

index 97d0084199dfef2ec721c20e9f025f8c47dd8449..1b6f0001dfba616594b58753e91aa84548e8df09 100644 (file)
@@ -29,6 +29,9 @@ WXDLLEXPORT_DATA(extern const char*) wxListBoxNameStr;
   WX_DEFINE_ARRAY(wxOwnerDrawn *, wxListBoxItemsArray);
 #endif
 
+// forward decl for GetSelections()
+class wxArrayInt;
+
 WXDLLEXPORT_DATA(extern const char*) wxEmptyString;
 
 // List box item
@@ -82,14 +85,14 @@ class WXDLLEXPORT wxListBox: public wxControl
   virtual void Deselect(const int n);
 
   // For single choice list item only
-  virtual int GetSelection(void) const ;
+  virtual int GetSelection() const ;
   virtual void Delete(const int n);
   virtual char *GetClientData(const int n) const ;
   virtual void SetClientData(const int n, char *clientData);
   virtual void SetString(const int n, const wxString& s);
 
   // For single or multiple choice list item
-  virtual int GetSelections(int **listSelections) const ;
+  virtual int GetSelections(wxArrayInt& aSelections) const;
   virtual bool Selected(const int n) const ;
   virtual wxString GetString(const int n) const ;
   virtual void SetSize(const int x, const int y, const int width, const int height, const int sizeFlags = wxSIZE_AUTO);
@@ -122,7 +125,6 @@ class WXDLLEXPORT wxListBox: public wxControl
  protected:
   int m_noItems;
   int m_selected;
-  int *m_selections;
 
 #if USE_OWNER_DRAWN
   // control items