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 » How to disable resizing a CExDynControlBar control bar Collapse All
Subject Author Date
Jean-Yves Tremblay Dec 21, 2006 - 9:20 AM

Hi,

I followed the steps described in the FAQ : "How to disable resizing a resizable control bar"
(http://www.prof-uis.com/FAQView.aspx?CID=97#FAQ351)

It works fine until I dock a control bar into another, then it’s no longer a CExtControlBar
but a CExtDynControlBar container, and my overriden methods are not called.

So I overrided the same methods in a CExtDynControlBar-derived class.

I’m stuck here :

I read that it is not possible to replace the CExtDynControlBar class with mines
(http://www.prof-uis.com/Forum_View.aspx?CID=29&M=5183)
like handling of registered windows messages for the CExtDynTabControlBar class.

What should i do ?

Thanks in advance

Technical Support Dec 21, 2006 - 11:56 AM

The solution in question is applicable to simple control bars only, not to dynamic control bars. If you are working with dynamic control bars, each tabbed group is an instance of CExtDynamicTabbedControlBar (not CExtDynTabControlBar). To make the dynamic bars create and use your custom CExtDynamicTabbedControlBar-based tab containers, you should override the CExtDynamicBarSite::OnDbsCreateTabbedBarInstance() virtual method.