fix: CViewObjects bug (#120)

fix bug (or feature) that left bar return to top when selected item is cancelled (press RB)
This commit is contained in:
handama 2024-11-25 10:24:28 +08:00 committed by GitHub
parent 47a770cdcb
commit 82715d1d0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2141,7 +2141,7 @@ void CIsoView::OnRButtonUp(UINT nFlags, CPoint point)
AD.reset();
CMyViewFrame& frame = *((CMyViewFrame*)owner);
frame.m_objectview->GetTreeCtrl().Select(frame.m_objectview->GetTreeCtrl().GetRootItem(), TVGN_CARET);
frame.m_objectview->GetTreeCtrl().Select(NULL, TVGN_CARET);
}
return;
}