git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11138
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
}
attr->SetTextColour(col);
}
attr->SetTextColour(col);
}
void wxTreeCtrl::SetItemBackgroundColour(const wxTreeItemId& item,
}
void wxTreeCtrl::SetItemBackgroundColour(const wxTreeItemId& item,
}
attr->SetBackgroundColour(col);
}
attr->SetBackgroundColour(col);
}
void wxTreeCtrl::SetItemFont(const wxTreeItemId& item, const wxFont& font)
}
void wxTreeCtrl::SetItemFont(const wxTreeItemId& item, const wxFont& font)
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------
{
LPNMTVCUSTOMDRAW lptvcd = (LPNMTVCUSTOMDRAW)lParam;
NMCUSTOMDRAW& nmcd = lptvcd->nmcd;
{
LPNMTVCUSTOMDRAW lptvcd = (LPNMTVCUSTOMDRAW)lParam;
NMCUSTOMDRAW& nmcd = lptvcd->nmcd;
- switch( nmcd.dwDrawStage )
+ switch ( nmcd.dwDrawStage )
{
case CDDS_PREPAINT:
// if we've got any items with non standard attributes,
// notify us before painting each item
*result = m_hasAnyAttr ? CDRF_NOTIFYITEMDRAW
: CDRF_DODEFAULT;
{
case CDDS_PREPAINT:
// if we've got any items with non standard attributes,
// notify us before painting each item
*result = m_hasAnyAttr ? CDRF_NOTIFYITEMDRAW
: CDRF_DODEFAULT;
case CDDS_ITEMPREPAINT:
{
case CDDS_ITEMPREPAINT:
{
if ( !attr )
{
// nothing to do for this item
if ( !attr )
{
// nothing to do for this item
+ *result = CDRF_DODEFAULT;
+ break;
{
*result = CDRF_DODEFAULT;
}
{
*result = CDRF_DODEFAULT;
}
default:
*result = CDRF_DODEFAULT;
default:
*result = CDRF_DODEFAULT;
-// break; // can never be reached
+
+ // we always process it
+ return TRUE;
#endif // _WIN32_IE >= 0x300
case NM_DBLCLK:
#endif // _WIN32_IE >= 0x300
case NM_DBLCLK: