更改CMFCRibbonPanel的宽度。 [英] Changinging the width of CMFCRibbonPanel.

查看:70
本文介绍了更改CMFCRibbonPanel的宽度。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以更改CMFCRibbonPanel的宽度,使得所有面板在CMFCRibbonCategory下的宽度均匀?

Is it possible to change the width of CMFCRibbonPanel such that all the panels are of uniform width under CMFCRibbonCategory?

我调用以下函数,

CMFCRibbonCategory * pCategoryHome;

CMFCRibbonCategory *pCategoryHome;

。 ...

CString strTemp = L" Test";

CString strTemp = L"Test";

pCategoryHome-> AddPanel(strTemp);

pCategoryHome->AddPanel(strTemp);

....

问候,

Amrut


CString strTemp = L" Test";

CString strTemp = L"Test";

pCategoryHome-> AddPanel(strTemp);

pCategoryHome->AddPanel(strTemp);

推荐答案

您好Amrut.sa,

Hi Amrut.s.a,

感谢您在此处发布。

>>是否可以更改CMFCRibbonPanel的宽度这样所有面板在CMFCRibbonCategory下的宽度均匀?

对于这种情况,您可以使用
CMFCRibbonPanel :: I sJustifyColumns
属性,指定是否所有面板列具有相同的宽度。 TRUE 如果功能区面板中同一列中的功能区元素的显示尺寸设置为相同的宽度。

For this case, you could use CMFCRibbonPanel::IsJustifyColumns property which specifies whether all panel columns have the same width. TRUE if the display dimensions of ribbon elements that are in the same column in the ribbon panel are set to the same width.

希望这可以为您提供帮助。

Hope this could be help of you.

最好的问候,

Baron Bi


这篇关于更改CMFCRibbonPanel的宽度。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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