15,979
社区成员
发帖
与我相关
我的任务
分享
BOOL CMainFrame::OnShowPopupMenu(CMFCPopupMenu* pMenuPopup)
{
if ((pMenuPopup != NULL) && !CMFCToolBar::IsCustomizeMode())
{
CMFCPopupMenuBar* pMenuBar = pMenuPopup->GetMenuBar();
CMFCToolBarMenuButton* pParentButton = pMenuPopup->GetParentButton();
if(pParentButton != NULL)
{
if(pParentButton->m_strText == GetTranslationString(_T("4")))
{
pMenuBar->SetButtonText(0, GetTranslationString(_T("8")));
}
else if(pParentButton->m_strText == GetTranslationString(_T("5")))
{
pMenuBar->SetButtonText(0, pGetTranslationString(_T("13")));
pMenuBar->SetButtonText(1, GetTranslationString(_T("14")));
}
else if(pParentButton->m_strText == GetTranslationString(_T("6")))
{
pMenuBar->SetButtonText(0, GetTranslationString(_T("22")));
}
}
}
return __super::OnShowPopupMenu(pMenuPopup);
}