|
|
|
|
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.
Subject |
Author |
Date |
|
Jean-Yves Tremblay
|
Dec 21, 2006 - 9:58 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 itaˆ™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.
Iaˆ™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
|
|
Jean-Yves Tremblay
|
Dec 21, 2006 - 4:00 PM
|
thanks for your reply,
The problem is that my control bar container I want resizing disabled is not a tab container. I created it like this :
m_wndResizableBarEmpty.Create(...) m_wndResizableBarCP.Create(...) ... m_wndResizableBarCP.DockControlBar(AFX_IDW_DOCKBAR_RIGHT, 2, this); m_wndResizableBarCP.DockControlBar(&m_wndResizableBarEmpty, true, true);
When I drag the border of this container and I break in CExtControlBar::OnNcLButtonDown, this = CExtDynControlBar
It’s not a tabbed container, am I wrong ?
thanks
|
|
Technical Support
|
Dec 22, 2006 - 11:58 AM
|
We would not recommend you using CExtControlBar::DockControlBar() for setting up initial locations of control bars. You could use the CExtControlBar::DockControlBarInnerOuter() and CExtControlBar::DockControlBarLTRB() methods instead.
|
|
Technical Support
|
Dec 21, 2006 - 11:55 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.
|
|