15,979
社区成员
发帖
与我相关
我的任务
分享
CMFCRibbonBar* pRibbon = ((CMainFrame*) GetTopLevelFrame())->GetRibbonBar()
CMFCRibbonBar* pRibbon = ((CMainFrame*) //这里出错
GetTopLevelFrame())->GetRibbonBar();
ASSERT_VALID(pRibbon);
CMFCRibbonComboBox* pSizeCombo = DYNAMIC_DOWNCAST(CMFCRibbonComboBox, pRibbon->FindByID(IDC_ViewSelect));
if (pSizeCombo == NULL)
{
return;
}