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:
@@ -45,6 +45,11 @@ public:
|
|||||||
|
|
||||||
static wxRendererNative& Get();
|
static wxRendererNative& Get();
|
||||||
|
|
||||||
|
virtual void DrawComboBoxDropButton(wxWindow *win,
|
||||||
|
wxDC& dc,
|
||||||
|
const wxRect& rect,
|
||||||
|
int flags = 0);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
DECLARE_NO_COPY_CLASS(wxRendererMSW)
|
DECLARE_NO_COPY_CLASS(wxRendererMSW)
|
||||||
};
|
};
|
||||||
@@ -70,6 +75,7 @@ public:
|
|||||||
wxCoord position,
|
wxCoord position,
|
||||||
wxOrientation orient,
|
wxOrientation orient,
|
||||||
int flags = 0);
|
int flags = 0);
|
||||||
|
|
||||||
virtual wxSplitterRenderParams GetSplitterParams(const wxWindow *win);
|
virtual wxSplitterRenderParams GetSplitterParams(const wxWindow *win);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@@ -96,6 +102,27 @@ wxRendererNative& wxRendererMSW::Get()
|
|||||||
return s_rendererMSW;
|
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
|
// wxRendererXP implementation
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
|
Reference in New Issue
Block a user