Fixed camera menu not updating.

This commit is contained in:
leo 2012-11-10 02:13:22 +00:00
parent ca39b28a62
commit 392b86bbf1

View file

@ -635,7 +635,7 @@ BOOL CMainFrame::OnShowPopupMenu(CMFCPopupMenu* pMenuPopup)
for (int iItemPop = 0; !bIsCamerawMenu && iItemPop < iItemMax; iItemPop ++) for (int iItemPop = 0; !bIsCamerawMenu && iItemPop < iItemMax; iItemPop ++)
{ {
UINT nID = ::GetMenuItemID( hMenuPop, iItemPop); UINT nID = ::GetMenuItemID( hMenuPop, iItemPop);
bIsCamerawMenu = (nID >= ID_CAMERA_FIRST && nID <= ID_CAMERA_LAST); bIsCamerawMenu = (nID == ID_VIEW_CAMERAS_RESET) || (nID >= ID_CAMERA_FIRST && nID <= ID_CAMERA_LAST);
} }
if (bIsCamerawMenu) if (bIsCamerawMenu)