How to use " CMFCPropertyGridProperty "to have a button
-
I want to use class CMFCPropertyGridProperty to add a button,and when i click the button,it can pop a dialog which i defined it by myself. it trobuled me a long time. when i see the information online,it told me that i can use CMFCPropertyGridProperty::hasbutton method,but it's a protect member,and i am new do this,i really don't know how to do it. help me... thanks a lot
-
I want to use class CMFCPropertyGridProperty to add a button,and when i click the button,it can pop a dialog which i defined it by myself. it trobuled me a long time. when i see the information online,it told me that i can use CMFCPropertyGridProperty::hasbutton method,but it's a protect member,and i am new do this,i really don't know how to do it. help me... thanks a lot
As a minimum you create a new class that inherits from the base class. Then you can override the HasButton method and get it to return true. Now you will get a small … button when you use this new class for your property. If you look at the MFC source code you will see that you can also override OnButtonClick to detect when the button is clicked. This is as much as I have found out so far.