virtualized splitter drawing; removed/deprecated some styles and moved others from wx/defs.h; eliminated flicker

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-21 23:12:17 +00:00
parent f65a69e9a0
commit b3208e1158
8 changed files with 310 additions and 343 deletions

View File

@@ -49,6 +49,12 @@ public:
const wxRect& rect,
int flags = 0);
// draw a (vertical) sash
virtual void DrawSplitterSash(wxWindow *win,
wxDC& dc,
const wxSize& size,
wxCoord position);
private:
// the tree buttons
wxBitmap m_bmpTreeExpanded,
@@ -185,3 +191,20 @@ wxRendererMac::DrawTreeItemButton(wxWindow *win,
#endif // 0/1
}
void
wxRendererMac::DrawSash(wxWindow *win,
wxDC& dc,
const wxSize& size,
wxCoord position)
{
// VZ: we have to somehow determine if we're drawing a normal sash or
// a brushed metal one as they look quite differently... this is
// completely bogus anyhow, of course (TODO)
const wxCoord h = size.y;
dc.SetPen(*wxLIGHT_GREY_PEN);
dc.SetBrush(*wxWHITE_BRUSH);
dc.DrawRectangle(position, 0, 7, h);
}