最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

mfc - How to get my CMFCPropertyGridCtrl to use the "square with +-" for toggling sections instead of &quo

programmeradmin0浏览0评论

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 to TreeView, the expand collapse image reverts to the default Office2010Silver 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 to TreeView, the expand collapse image reverts to the default Office2010Silver 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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

This is only a partial answer because it fixes this issue, and causes another

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论