StatusBar中的CMFCRibbonButton问题 [英] CMFCRibbonButton Problem in StatusBar

查看:81
本文介绍了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

推荐答案

通过此链接


[
go thru this link


[^]


Ganesh_IT,

您找到解决此问题的方法了吗?我正在尝试类似的操作,但没有找到sam_ckp的任何链接.

谢谢!
大卫
Hi Ganesh_IT,

Did you find a solution for this problem? I am trying to something similar, and I didn''t find sam_ckp''s link of any use.

Thanks!
David


这篇关于StatusBar中的CMFCRibbonButton问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆