MCPcopy Create free account
hub / github.com/NPP-JSONViewer/JSON-Viewer / GetNodePosition

Method GetNodePosition

src/NppJsonViewer/TreeViewCtrl.cpp:284–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

282}
283
284auto TreeViewCtrl::GetNodePosition(HTREEITEM hti) const -> Position*
285{
286 Position* pPosition = nullptr;
287 if (hti != nullptr)
288 {
289 LPARAM nodePos = GetNodePos(hti);
290 if (nodePos != -1)
291 {
292 pPosition = reinterpret_cast<Position*>(nodePos);
293 }
294 }
295 return pPosition;
296}
297
298HTREEITEM TreeViewCtrl::GetSelection() const
299{

Callers 1

HandleTreeEventsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected