如何更改CMFCPropertyGridCtrl属性列或值列的宽度? [英] How could I change the CMFCPropertyGridCtrl Property Column or Value column width?

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

问题描述


如何更改CMFCPropertyGridCtrl 属性列或值列的宽度是什么?
示例代码会更有用

Hi,
How could I change the CMFCPropertyGridCtrl  Property Column or Value column width?
a sample code would be more useful

推荐答案

Amir.mh,

基于在我的研究中,CMFCPropertyGridCtrl类没有提供任何属性来修改值的宽度.如果可以尝试使用CMFCPropertyGridCtrl.SetWindowPos来更改值"列的宽度,请参考以下代码:

Hi Amir.mh,

Based on my research, CMFCPropertyGridCtrl Class does not provide any properties to modify value colunmn width. If you can try to use CMFCPropertyGridCtrl.SetWindowPos to change Value column width, please refer to following code:

CMFCPropertyGridCtrl m_wndPropList;
m_wndPropList.SetWindowPos(NULL, rectClient.left, 
rectClient.top + cyCmb + cyTlb, rectClient.Width(),
rectClient.Height() -(cyCmb+cyTlb), SWP_NOACTIVATE | SWP_NOZORDER);

 如果我误解了您,或者您有任何意见,请更新此主题.

最好的问候,
南希

 If I misunderstood you, or you have any comments, please update this thread.

Best Regards,
Nancy


这篇关于如何更改CMFCPropertyGridCtrl属性列或值列的宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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