| 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 | { |