X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/59ee63e934c5e2bdc115a8b5cfc39f036acaae01..69659fd770f615210efac4b4fa741b3ad6223616:/src/msw/renderer.cpp diff --git a/src/msw/renderer.cpp b/src/msw/renderer.cpp index 2a63a4b0b5..4d7b390127 100644 --- a/src/msw/renderer.cpp +++ b/src/msw/renderer.cpp @@ -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 ) @@ -235,6 +232,8 @@ wxRendererMSW::DrawCheckBox(wxWindow * WXUNUSED(win), style |= DFCS_CHECKED; if ( flags & wxCONTROL_DISABLED ) style |= DFCS_INACTIVE; + if ( flags & wxCONTROL_FLAT ) + style |= DFCS_MONO; if ( flags & wxCONTROL_PRESSED ) style |= DFCS_PUSHED; if ( flags & wxCONTROL_CURRENT )