When using a CMFCPropertyGridCtrl, "selecting" a child item, then deleting the parent using DeleteProperty, then adding a new property and calling AdjustLayout triggers a crash, as the m_pSel pointer within the CMFCPropertyGridCtrl is now dangling.I can work around this by calling SetCurSel(0) after deleting a parent object.
Visual Studio/Team Foundation Server/.NET Framework Tooling version
Steps to reproduce
Product Language
Operating System
Operating System Language
Actual results
Expected results