git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43383
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Installs standard input handler to combo (and optionally to the textctrl)
void InstallInputHandlers();
// Installs standard input handler to combo (and optionally to the textctrl)
void InstallInputHandlers();
+ // flags for DrawButton()
+ enum
+ {
+ Draw_PaintBg = 1
+ };
+
// Draws dropbutton. Using wxRenderer or bitmaps, as appropriate.
// Draws dropbutton. Using wxRenderer or bitmaps, as appropriate.
- void DrawButton( wxDC& dc, const wxRect& rect, bool paintBg = true );
+ void DrawButton( wxDC& dc, const wxRect& rect, int flags = Draw_PaintBg );
// Call if cursor is on button area or mouse is captured for the button.
//bool HandleButtonMouseEvent( wxMouseEvent& event, bool isInside );
// Call if cursor is on button area or mouse is captured for the button.
//bool HandleButtonMouseEvent( wxMouseEvent& event, bool isInside );
-void wxComboCtrlBase::DrawButton( wxDC& dc, const wxRect& rect, bool paintBg )
+void wxComboCtrlBase::DrawButton( wxDC& dc, const wxRect& rect, int paintBg )
{
int drawState = m_btnState;
{
int drawState = m_btnState;
dc.DrawRectangle(rect);
if ( !m_btn )
dc.DrawRectangle(rect);
if ( !m_btn )
// Standard button rendering
// Standard button rendering
- DrawButton(dc,rectb,true);
+ DrawButton(dc,rectb);
+ }
// paint required portion on the control
if ( (!m_text || m_widthCustomPaint) )
// paint required portion on the control
if ( (!m_text || m_widthCustomPaint) )
dc.DrawRectangle(rect);
// Button background with theme?
dc.DrawRectangle(rect);
// Button background with theme?
+ int drawButFlags = Draw_PaintBg;
if ( hTheme && m_blankButtonBg )
{
RECT r;
if ( hTheme && m_blankButtonBg )
{
RECT r;
}
// Standard button rendering
}
// Standard button rendering
- DrawButton(dc,rectb,drawButBg);
+ DrawButton(dc,rectb,drawButFlags);
// paint required portion on the control
if ( (!m_text || m_widthCustomPaint) )
// paint required portion on the control
if ( (!m_text || m_widthCustomPaint) )