- return wxSize(80, 22);
-}
-
-void wxDataViewHeaderWindowMSW::OnPaint(wxPaintEvent &event)
-{
- wxClientDC dc(this);
-
- int sortArrow = wxHDR_SORT_ICON_UP;
-
- wxRect rect(0,0,80,22);
-
- // Draw an up or down arrow
- int arrowSpace = 0;
- if (sortArrow != wxHDR_SORT_ICON_NONE )
- {
- wxRect ar = rect;
-
- // make a rect for the arrow
- ar.height = 4;
- ar.width = 8;
- ar.y += (rect.height - ar.height)/2;
- ar.x = ar.x + rect.width - 3*ar.width/2;
- arrowSpace = 3*ar.width/2; // space to preserve when drawing the label
-
- wxPoint triPt[3];
- if ( sortArrow & wxHDR_SORT_ICON_UP )
- {
- triPt[0].x = ar.width / 2;
- triPt[0].y = 0;
- triPt[1].x = ar.width;
- triPt[1].y = ar.height;
- triPt[2].x = 0;
- triPt[2].y = ar.height;
- }
- else
- {
- triPt[0].x = 0;
- triPt[0].y = 0;
- triPt[1].x = ar.width;
- triPt[1].y = 0;
- triPt[2].x = ar.width / 2;
- triPt[2].y = ar.height;
- }
-
- wxColour c = wxSystemSettings::GetColour(wxSYS_COLOUR_3DSHADOW);
- dc.SetPen(wxPen(c));
- dc.SetBrush(wxBrush(c));
- dc.DrawPolygon( 3, triPt, ar.x, ar.y);
- }
-
- event.Skip();