git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56459
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
x=0;
GetVirtualSize(&w, &h);
wxRect rect( x, item->GetY()+offset, w, total_h-offset);
x=0;
GetVirtualSize(&w, &h);
wxRect rect( x, item->GetY()+offset, w, total_h-offset);
-#if !defined(__WXGTK20__) && !defined(__WXMAC__)
- dc.DrawRectangle(rect);
-#else
if (!item->IsSelected())
{
dc.DrawRectangle(rect);
if (!item->IsSelected())
{
dc.DrawRectangle(rect);
wxRendererNative::Get().
DrawItemSelectionRect(this, dc, rect, flags);
}
wxRendererNative::Get().
DrawItemSelectionRect(this, dc, rect, flags);
}
+ else // no full row highlight
{
if ( item->IsSelected() &&
(state != wxTREE_ITEMSTATE_NONE || image != NO_IMAGE) )
{
if ( item->IsSelected() &&
(state != wxTREE_ITEMSTATE_NONE || image != NO_IMAGE) )
{
wxRect rect( item->GetX()-2, item->GetY()+offset,
item->GetWidth()+2, total_h-offset );
{
wxRect rect( item->GetX()-2, item->GetY()+offset,
item->GetWidth()+2, total_h-offset );
-#if !defined(__WXGTK20__) && !defined(__WXMAC__)
- dc.DrawRectangle( rect );
-#else
if ( hasBgColour )
{
dc.DrawRectangle( rect );
}
if ( hasBgColour )
{
dc.DrawRectangle( rect );
}
+ else // no specific background colour
{
rect.x -= 1;
rect.width += 2;
{
rect.x -= 1;
rect.width += 2;
wxRendererNative::Get().
DrawItemSelectionRect(this, dc, rect, flags);
}
wxRendererNative::Get().
DrawItemSelectionRect(this, dc, rect, flags);
}