git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6235
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
int cx, cy;
wxGetCharSize(GetHWND(), &cx, &cy, &GetFont());
int cx, cy;
wxGetCharSize(GetHWND(), &cx, &cy, &GetFont());
+ // what should the height of the drop down list be? we choose 10 items by
+ // default and also 10 items max (if we always use n, the list will never
+ // have vertical scrollbar)
int n = GetCount();
if ( !n )
n = 10;
int n = GetCount();
if ( !n )
n = 10;
+ else if ( n > 10 )
+ n = 10;
height = n * EDIT_HEIGHT_FROM_CHAR_HEIGHT(cy);
height = n * EDIT_HEIGHT_FROM_CHAR_HEIGHT(cy);