fixed wxComboBox sizing problem again
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10250 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -84,9 +84,6 @@ public:
|
|||||||
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
WXUINT message, WXWPARAM wParam, WXLPARAM lParam);
|
||||||
|
|
||||||
WXHWND GetEditHWND() const;
|
WXHWND GetEditHWND() const;
|
||||||
|
|
||||||
protected:
|
|
||||||
virtual wxSize DoGetBestSize() const;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // wxUSE_COMBOBOX
|
#endif // wxUSE_COMBOBOX
|
||||||
|
@@ -190,7 +190,7 @@ bool wxComboBox::MSWProcessEditMsg(WXUINT msg, WXWPARAM wParam, WXLPARAM lParam)
|
|||||||
{
|
{
|
||||||
case WM_CHAR:
|
case WM_CHAR:
|
||||||
return HandleChar(wParam, lParam, TRUE /* isASCII */);
|
return HandleChar(wParam, lParam, TRUE /* isASCII */);
|
||||||
|
|
||||||
case WM_KEYDOWN:
|
case WM_KEYDOWN:
|
||||||
return HandleKeyDown(wParam, lParam);
|
return HandleKeyDown(wParam, lParam);
|
||||||
|
|
||||||
@@ -487,19 +487,6 @@ void wxComboBox::SetSelection(long from, long to)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
wxSize wxComboBox::DoGetBestSize() const
|
|
||||||
{
|
|
||||||
// the choice calculates the horz size correctly, but not the vertical
|
|
||||||
// component: correct it
|
|
||||||
wxSize size = wxChoice::DoGetBestSize();
|
|
||||||
|
|
||||||
int cx, cy;
|
|
||||||
wxGetCharSize(GetHWND(), &cx, &cy, &GetFont());
|
|
||||||
size.y = EDIT_HEIGHT_FROM_CHAR_HEIGHT(cy);
|
|
||||||
|
|
||||||
return size;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
// wxUSE_COMBOBOX
|
// wxUSE_COMBOBOX
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user