Click here to Skip to main content
15,867,305 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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:
C++
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)); //
Posted
Updated 28-Oct-14 21:11pm
v2

1 solution

There are the dark area in the interface, how to solve it?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900