问题描述
是否可以更改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);
推荐答案
感谢您在此处发布。
>>是否可以更改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的宽度。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!