Restored scrollbar background
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
b631781021
commit
123865f20a
Binary file not shown.
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 206 B |
@ -59,6 +59,7 @@ public:
|
||||
|
||||
protected:
|
||||
|
||||
virtual WXHBRUSH DoMSWControlColor(WXHDC pDC, wxColour colBg, WXHWND hWnd);
|
||||
wxSize DoGetBestSize() const;
|
||||
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
|
||||
|
||||
|
@ -344,4 +344,16 @@ WXDWORD wxScrollBar::MSWGetStyle(long style, WXDWORD *exstyle) const
|
||||
return msStyle;
|
||||
}
|
||||
|
||||
WXHBRUSH wxScrollBar::DoMSWControlColor(WXHDC pDC, wxColour colBg, WXHWND hWnd)
|
||||
{
|
||||
HDC hdc = (HDC)pDC;
|
||||
if ( m_hasFgCol )
|
||||
{
|
||||
::SetTextColor(hdc, wxColourToRGB(GetForegroundColour()));
|
||||
}
|
||||
|
||||
WXHBRUSH hbr = 0;
|
||||
return hbr;
|
||||
}
|
||||
|
||||
#endif // wxUSE_SCROLLBAR
|
||||
|
Loading…
Reference in New Issue
Block a user