本文介绍了StatusBar中的CMFCRibbonButton问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,我在使用MFC功能区控件的MFC项目中.我的问题是我需要将CMFCRibbonButton添加到CMFCRibbonStatusBar中. CMFCRibbonButton包含图像.
Hi guys, i am in MFC Project in which am using MFC Ribbon Controls. My problem is i need add a CMFCRibbonButton into the CMFCRibbonStatusBar. CMFCRibbonButton contains image.
Mainframe.cpp
//////////////////////////////////////////
int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
......
m_wndStatusBar.AddElement(new CMFCRibbonStatusBarPane(ID_STATUSBAR_PANE1, strTitlePane1, TRUE), strTitlePane1);
m_wndStatusBar.AddExtendedElement(new CMFCRibbonStatusBarPane(ID_STATUSBAR_PANE2, strTitlePane2, TRUE), strTitlePane2);
m_wndStatusBar.AddElement(new CMFCRibbonButton(IDB_TEST, _T("Test"), 22, -1), _T("Text")); // here the button added into statusbar without small image
}
;
我不知道怎么了,如果您知道的话,请教我如何在CMFCRibbonStatusBar中使用图像按钮
在此先感谢
ganesh_IT
i dont know what''s wrong, if you know explain me how to a button with image in CMFCRibbonStatusBar
Thanks in advance
ganesh_IT
推荐答案
这篇关于StatusBar中的CMFCRibbonButton问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!