why the CMFCRibbonBar::m_hWnd was cleared after I removed a category by calling CMFCRibbonBar::Remov

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Dear all<br/> <br/> now days, I created a MFC application and used the ribbon UI, it looks cool, but I met a problem and have not find the answer yet.<br/> the problem looks like this:<br/> <br/>    I added some categories to the ribbonbar, when destroying an frame window, I try to remove a specify category by  CMFCRibbonBar::RemoveCategory(), but i found that the CMFCRibbonBar::m_hWnd was changed to 0 after this in the debug, and exception caused later. can anyone provide some ideas? thanks in advance.

View the full article
 
Back
Top