implemented DrawComboBoxDropButton() for classic Win32

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-01-21 15:36:56 +00:00
parent f33cef9fec
commit 7402677a3a

View File

@@ -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
// ============================================================================