VS2010 MFC PropertyGrid控件组件在刷新时有一个暗区... [英] VS2010 MFC PropertyGrid Control Component have a dark area when refreshing...

查看:105
本文介绍了VS2010 MFC PropertyGrid控件组件在刷新时有一个暗区...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MFC PropertyGrid控件组件在刷新内容或展开最后一个子项时有一个暗区。显示为照片(链接网站):



http:// bbs.csdn.net/topics/390911289 [ ^ ]





初始代码:

MFC PropertyGrid Control Component have a dark area when refresh the Content or unfold the last subitem. show as the photo(Link the site):

http://bbs.csdn.net/topics/390911289[^]


Init code:

HDITEM wide, wideSample; 
wide.cxy = 160; 
wide.mask = HDI_WIDTH; 
m_MFCPropertyGridCtrl.GetHeaderCtrl().SetItem(0, new HDITEM(wide)); 
m_MFCPropertyGridCtrl.EnableHeaderCtrl(false, _T("Name"), _T("Parameter"));
m_MFCPropertyGridCtrl.SetVSDotNetLook();
m_MFCPropertyGridCtrl.MarkModifiedProperties();
m_MFCPropertyGridCtrl.SetAlphabeticMode(false);
m_MFCPropertyGridCtrl.SetShowDragContext(); 
m_MFCPropertyGridCtrl.SetCustomColors(RGB(245, 245, 245),    
RGB(0, 0, 0),        
RGB(210, 210, 210),  //
RGB(30, 100, 50),    //
RGB(200, 236, 209),  //
RGB(128, 0, 0),      //
RGB(159, 159, 255)); //

推荐答案

界面中有黑暗区域,如何解决?
There are the dark area in the interface, how to solve it?


这篇关于VS2010 MFC PropertyGrid控件组件在刷新时有一个暗区...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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