MCPcopy Create free account
hub / github.com/BohemiaInteractive/CWR / SetSelected

Method SetSelected

engine/Poseidon/UI/Controls/UIControlsTree.cpp:218–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void CTree::SetSelected(CTreeItem* item)
219{
220 if ((_style & TR_SHOWROOT) == 0 && item == _root)
221 {
222 return;
223 }
224
225 _selected = item;
226 _parent->OnTreeSelChanged(IDC());
227
228 EnsureVisible(_selected);
229}
230
231void CTree::Expand(CTreeItem* item, bool expand)
232{

Callers 1

InsertGamesMethod · 0.80

Calls 1

OnTreeSelChangedMethod · 0.45

Tested by

no test coverage detected