如何在CMFCPropertyGridCtrl中添加复选框? [英] How to add checkbox in CMFCPropertyGridCtrl?
本文介绍了如何在CMFCPropertyGridCtrl中添加复选框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用CMFCPropertyGridCtrl,而我的一些CMFCPropertyGridProperty元素在值区域中有一个复选框,而不是布尔属性。有没有想过如何做到这一点?
谢谢你,对不起我的英语很差
解决方案
< blockquote>这可以通过从 CMFCPropertyGridProperty
派生一个类并实现必要的功能来完成。
我在德语论坛中找到了一个例子(向下滚动到帖子的最后一篇文章):CMFCPropertyGridProperty - Lokalisierung [ ^ ]。
此源似乎也实现了一个复选框属性:http://muse-game-engine.googlecode.com/svn/muse/tools/UIEditor/CustomProperties.cpp [ ^ ]
Hi,
I am working with CMFCPropertyGridCtrl and I what that some CMFCPropertyGridProperty elements have a check Box in the value area, instead of a boolean property. Does any have any idea on how to do that?
Thank you and sorry for my poor English
解决方案
This can be done by deriving a class fromCMFCPropertyGridProperty
and implementing the necessary functions.
I have found an example in a German forum (scroll down to the last post of the thread): CMFCPropertyGridProperty - Lokalisierung[^].
This source seems to implement a check box property too: http://muse-game-engine.googlecode.com/svn/muse/tools/UIEditor/CustomProperties.cpp[^]
这篇关于如何在CMFCPropertyGridCtrl中添加复选框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文