Professional UI Solutions
Site Map   /  Register
 
 

Forum

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 General Discussion » "Hide" button on CExtResizableDialog Collapse All
Subject Author Date
Darius Mikalauskas Aug 8, 2006 - 6:47 AM

Hello,

I dynamically create number of CExtResizableDialog objects. Is it possible to modify action of "Hide" button on control bar not to hide but to destroy dialog?

Thank you.

Technical Support Aug 8, 2006 - 9:50 AM

You can modify the default look and behavior of any caption button. Each caption button is represented by the CExtBarNcAreaButton class (or any class derived from it like CExtBarNcAreaButtonClose which implements the "X" button in the control bar’s caption). You can create a CExtBarNcAreaButton-derived class and implement the OnNcAreaClicked() virtual method in it. Now to make the control bar using your caption button, create and use a CExtControlBar-derived class with an overridden CExtControlBar::OnNcAreaButtonsReinitialize() virtual method. Make this method similar to the original one, except it should create an instance of your custom "X" button.

Darius Mikalauskas Aug 8, 2006 - 1:57 PM

Very thanks!