use wxCopyRectToRECT() instead of duplicating its code (patch 1707294)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-04-26 01:26:46 +00:00
parent 96aaaff865
commit 46bd197877

View File

@@ -207,10 +207,7 @@ wxRendererMSW::DrawComboBoxDropButton(wxWindow * WXUNUSED(win),
int flags)
{
RECT r;
r.left = rect.GetLeft();
r.top = rect.GetTop();
r.bottom = rect.y + rect.height;
r.right = rect.x + rect.width;
wxCopyRectToRECT(rect, r);
int style = DFCS_SCROLLCOMBOBOX;
if ( flags & wxCONTROL_DISABLED )