Added wxTreeCtrl::SetItemDropHighlight (wxMSW only);
added WS_CLIPCHILDREN style to wxNotebook. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1947 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -377,6 +377,13 @@ void wxTreeCtrl::SetItemBold(const wxTreeItemId& item, bool bold)
|
||||
DoSetItem(&tvItem);
|
||||
}
|
||||
|
||||
void wxTreeCtrl::SetItemDropHighlight(const wxTreeItemId& item, bool highlight)
|
||||
{
|
||||
wxTreeViewItem tvItem(item, TVIF_STATE, TVIS_DROPHILITED);
|
||||
tvItem.state = highlight ? TVIS_DROPHILITED : 0;
|
||||
DoSetItem(&tvItem);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// Item status
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -522,6 +529,13 @@ wxTreeItemId wxTreeCtrl::DoInsertItem(const wxTreeItemId& parent,
|
||||
TV_INSERTSTRUCT tvIns;
|
||||
tvIns.hParent = (HTREEITEM) (WXHTREEITEM)parent;
|
||||
tvIns.hInsertAfter = (HTREEITEM) (WXHTREEITEM) hInsertAfter;
|
||||
|
||||
// This is how we insert the item as the first child: supply a NULL hInsertAfter
|
||||
if (tvIns.hInsertAfter == (HTREEITEM) 0)
|
||||
{
|
||||
tvIns.hInsertAfter = TVI_FIRST;
|
||||
}
|
||||
|
||||
UINT mask = 0;
|
||||
if ( !text.IsEmpty() )
|
||||
{
|
||||
|
Reference in New Issue
Block a user