Professional UI Solutions
Site Map   /  Register


Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Additional buttons in the CExtPropertyGridToolBar Collapse All
Subject Author Date
Dominik Braendlin Aug 19, 2008 - 12:59 AM

Is there an article about how to add additional buttons to the CExtPropertyGridToolBar control? Is it at all possible to do so?

I would like to add additional buttons to the CExtPropertyGridToolBar and also handle there ON_BTN_CLICK event. Could you provide an example on how to do that?


Technical Support Aug 19, 2008 - 11:49 AM

The specialized version of the CExtPPVW template class for the CExtPropertyGridCtrl class demonstrates how to do this. The CExtPPVW template class implements printing and print previewing for other controls. It adds print and print preview buttons to the toolbar of the property grid control. The CExtPPVW < CExtPropertyGridCtrl > :: OnPgcCreateBars() virtual method modifies the toolbar of property grid control by adding new buttons to it. The CExtPPVW < CExtPropertyGridCtrl > :: OnCmdMsg () virtual method handles and updates the state of toolbar commands.

Dominik Braendlin Aug 19, 2008 - 7:56 AM

I found some articles about adding buttons on your page but none of them seams to work at least in my project. I get the button but it does not show the icon nor does it trigger a CN_COMMAND event.

I have implemented the OnPgcCreateBars and the OnCmdMsg function.