From 7402677a3a976040667116fb361b94e733262f85 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 21 Jan 2005 15:36:56 +0000 Subject: [PATCH] implemented DrawComboBoxDropButton() for classic Win32 git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/renderer.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/src/msw/renderer.cpp b/src/msw/renderer.cpp index 9b83f01338..49bbb5e920 100644 --- a/src/msw/renderer.cpp +++ b/src/msw/renderer.cpp @@ -45,6 +45,11 @@ public: static wxRendererNative& Get(); + virtual void DrawComboBoxDropButton(wxWindow *win, + wxDC& dc, + const wxRect& rect, + int flags = 0); + private: DECLARE_NO_COPY_CLASS(wxRendererMSW) }; @@ -70,6 +75,7 @@ public: wxCoord position, wxOrientation orient, int flags = 0); + virtual wxSplitterRenderParams GetSplitterParams(const wxWindow *win); private: @@ -96,6 +102,27 @@ wxRendererNative& wxRendererMSW::Get() return s_rendererMSW; } +void +wxRendererMSW::DrawComboBoxDropButton(wxWindow * WXUNUSED(win), + wxDC& dc, + const wxRect& rect, + int flags) +{ + RECT r; + r.left = rect.GetLeft(); + r.top = rect.GetTop(); + r.bottom = rect.GetBottom(); + r.right = rect.GetRight(); + + int style = DFCS_SCROLLCOMBOBOX; + if ( flags & wxCONTROL_DISABLED ) + style |= DFCS_INACTIVE; + if ( flags & wxCONTROL_PRESSED ) + style |= DFCS_PUSHED; + + ::DrawFrameControl(GetHdcOf(dc), &r, DFC_SCROLL, style); +} + // ============================================================================ // wxRendererXP implementation // ============================================================================ -- 2.45.2