MCPcopy Create free account
hub / github.com/SOUI2/soui / SetItemWidth

Method SetItemWidth

SOUI/src/control/STreeView.cpp:298–307  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296 }
297
298 void STreeViewItemLocator::SetItemWidth(HTREEITEM hItem,int nWidth)
299 {
300 int nOldWidth = GetItemWidth(hItem);
301 if(nOldWidth == nWidth) return;
302 int nOldBranchWidth = _GetItemVisibleWidth(hItem);
303 _SetItemWidth(hItem,nWidth);
304 int nNewBranchWidth = _GetItemVisibleWidth(hItem);
305 if(nOldBranchWidth == nNewBranchWidth) return;
306 _UpdateBranchWidth(hItem,nOldBranchWidth,nNewBranchWidth);
307 }
308
309 HTREEITEM STreeViewItemLocator::Position2Item(int position) const
310 {

Callers 1

UpdateVisibleItemsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected