admin管理员组文章数量:1307852
In my test dialog I have a CTreeCtrl
and a CMFCPropertyGridCtrl
:
When I run these controls in dark mode they look like this:
The CTreeCtrl
still has the expandable icons as a square with +/-. But the CMFCPropertyGridCtrl
is now using a v
down symbol. IN other MFC applications I still have the square. I can't find a setting for this.
I saw this mentioned on a webpage but it doesn't appear to be valid (might be be the right type of control):
When you change the
TreeButtonStyle
of the property grid toTreeView
, the expand collapse image reverts to the defaultOffice2010Silver
skin style.
Side-point, if I use:
// This causes the tree control to use down arrows (but no dark mode support)
SetWindowTheme(m_treeCtrl.GetSafeHwnd(), L"Explorer", nullptr);
It causes the tree control to use the same arrow style:
Removing that line returns back to the square symbol. No I can't woprk out how to change the property grid control.
In my test dialog I have a CTreeCtrl
and a CMFCPropertyGridCtrl
:
When I run these controls in dark mode they look like this:
The CTreeCtrl
still has the expandable icons as a square with +/-. But the CMFCPropertyGridCtrl
is now using a v
down symbol. IN other MFC applications I still have the square. I can't find a setting for this.
I saw this mentioned on a webpage but it doesn't appear to be valid (might be be the right type of control):
When you change the
TreeButtonStyle
of the property grid toTreeView
, the expand collapse image reverts to the defaultOffice2010Silver
skin style.
Side-point, if I use:
// This causes the tree control to use down arrows (but no dark mode support)
SetWindowTheme(m_treeCtrl.GetSafeHwnd(), L"Explorer", nullptr);
It causes the tree control to use the same arrow style:
Removing that line returns back to the square symbol. No I can't woprk out how to change the property grid control.
Share Improve this question edited Feb 2 at 17:07 Andrew Truckle asked Feb 2 at 16:50 Andrew TruckleAndrew Truckle 19.2k17 gold badges84 silver badges218 bronze badges1 Answer
Reset to default 0This is only a partial answer because it fixes this issue, and causes another
本文标签:
版权声明:本文标题:mfc - How to get my CMFCPropertyGridCtrl to use the "square with +-" for toggling sections instead of &quo 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741840753a2400482.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论