Generic fix for full row highlight
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
1295f134ed
commit
9e4355850b
@ -2231,14 +2231,9 @@ void wxGenericTreeCtrl::PaintItem(wxGenericTreeItem *item, wxDC& dc)
|
|||||||
|
|
||||||
if ( HasFlag(wxTR_FULL_ROW_HIGHLIGHT) )
|
if ( HasFlag(wxTR_FULL_ROW_HIGHLIGHT) )
|
||||||
{
|
{
|
||||||
int x, y, w, h;
|
int x, w, h;
|
||||||
// TODO : using DoGetPosition should be wrong on any platform, the dc is focused on this window
|
x=0;
|
||||||
#ifdef __WXMAC__
|
GetVirtualSize(&w, &h);
|
||||||
x=y=0;
|
|
||||||
#else
|
|
||||||
DoGetPosition(&x, &y);
|
|
||||||
#endif
|
|
||||||
DoGetSize(&w, &h);
|
|
||||||
dc.DrawRectangle(x, item->GetY()+offset, w, total_h-offset);
|
dc.DrawRectangle(x, item->GetY()+offset, w, total_h-offset);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user