- virtual void DoSetItemClientData( int n, void* clientData );
- virtual void* DoGetItemClientData( int n ) const;
- virtual void DoSetItemClientObject( int n, wxClientData* clientData );
- virtual wxClientData* DoGetItemClientObject( int n ) const;
-
- // OS2 implementation
- virtual wxSize DoGetBestSize();
- virtual void DoSetSize(int x, int y,
- int width, int height,
- int sizeFlags = wxSIZE_AUTO);
-private:
- // Virtual function hiding supression
-/*
- inline virtual void DoSetClientData( void *data )
- { wxWindowBase::DoSetClientData(data); }
- inline virtual void DoSetClientObject( wxClientData *data )
- { wxWindowBase::DoSetClientObject(data); }
- inline virtual wxClientData *DoGetClientObject() const
- { return(wxWindowBase::DoGetClientObject());}
- inline virtual void *DoGetClientData() const
- { return(wxWindowBase::DoGetClientData());}
-*/
-};
+ // common part of all ctors
+ void Init() { m_lastAcceptedSelection = wxID_NONE; }
+
+ virtual int DoAppend(const wxString& rsItem);
+ virtual int DoInsert(const wxString& rsItem, unsigned int pos);
+ virtual void DoSetItemClientData(unsigned int n, void* pClientData);
+ virtual void* DoGetItemClientData(unsigned int n) const;
+ virtual void DoSetItemClientObject(unsigned int n, wxClientData* pClientData);
+ virtual wxClientData* DoGetItemClientObject(unsigned int n) const;
+ virtual wxSize DoGetBestSize(void) const;
+ virtual void DoSetSize( int nX
+ ,int nY
+ ,int nWidth
+ ,int nHeight
+ ,int nsizeFlags = wxSIZE_AUTO
+ );
+ void Free(void);
+
+ // last "completed" selection, i.e. not the transient one while the user is
+ // browsing the popup list: this is only used when != wxID_NONE which is
+ // the case while the drop down is opened
+ int m_lastAcceptedSelection;
+}; // end of CLASS wxChoice