use new style creation (MSWCreateControl() and MSWGetStyle()); adjust the drop down list height after appending/inserting/deleting items

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25578 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2004-02-07 19:26:22 +00:00
parent 7b28e0ede4
commit 71e57cd650
4 changed files with 119 additions and 60 deletions

View File

@@ -101,9 +101,24 @@ protected:
int width, int height,
int sizeFlags = wxSIZE_AUTO);
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
// get the real height of the control
int GetVisibleHeight() const;
// update the height of the drop down list to fit the number of items we
// have (without changing the visible height)
void UpdateVisibleHeight();
// create and initialize the control
bool CreateAndInit(wxWindow *parent, wxWindowID id,
const wxPoint& pos,
const wxSize& size,
int n, const wxString choices[],
long style,
const wxValidator& validator,
const wxString& name);
// free all memory we have (used by Clear() and dtor)
void Free();