Use renderer for wxListCtrl's header in wxUniversal.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@17281 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1813,6 +1813,11 @@ wxListHeaderWindow::~wxListHeaderWindow()
|
|||||||
delete m_resizeCursor;
|
delete m_resizeCursor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef __WXUNIVERSAL__
|
||||||
|
#include "wx/univ/renderer.h"
|
||||||
|
#include "wx/univ/theme.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
void wxListHeaderWindow::DoDrawRect( wxDC *dc, int x, int y, int w, int h )
|
void wxListHeaderWindow::DoDrawRect( wxDC *dc, int x, int y, int w, int h )
|
||||||
{
|
{
|
||||||
#if defined(__WXGTK__) && !defined(__WXUNIVERSAL__)
|
#if defined(__WXGTK__) && !defined(__WXUNIVERSAL__)
|
||||||
@@ -1826,7 +1831,11 @@ void wxListHeaderWindow::DoDrawRect( wxDC *dc, int x, int y, int w, int h )
|
|||||||
(GdkRectangle*) NULL, m_wxwindow,
|
(GdkRectangle*) NULL, m_wxwindow,
|
||||||
(char *)"button", // const_cast
|
(char *)"button", // const_cast
|
||||||
x-1, y-1, w+2, h+2);
|
x-1, y-1, w+2, h+2);
|
||||||
#elif defined( __WXMAC__ )
|
#elif defined(__WXUNIVERSAL__)
|
||||||
|
wxTheme *theme = wxTheme::Get();
|
||||||
|
wxRenderer *renderer = theme->GetRenderer();
|
||||||
|
renderer->DrawBorder( *dc, wxBORDER_RAISED, wxRect(x,y,w,h), 0 );
|
||||||
|
#elif defined(__WXMAC__)
|
||||||
const int m_corner = 1;
|
const int m_corner = 1;
|
||||||
|
|
||||||
dc->SetBrush( *wxTRANSPARENT_BRUSH );
|
dc->SetBrush( *wxTRANSPARENT_BRUSH );
|
||||||
|
Reference in New Issue
Block a user