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 » FrameEnableDocking usage Collapse All
Subject Author Date
Emmanuel Verguet May 4, 2007 - 8:51 AM

Hello,

I had previously developed a Photoshop’like toolbar without Prof-UIS. Now I’m using Prof-UIS for our applications, except for this toolbar (I have some problem to adapt code with Prof-UIS :) This is not my main problem. Here it is :

This floating toolbar can have a child floating toolbar when left mouse button is pressed on some button on the main toolbar (like in Photoshop). Child toolbar don’t have a caption (WS_CAPTION not set). If I use CExtControlBar::FrameEnableDocking(this) in my CMainFrame, child toolbars appears with a CAPTION. If I use CExtControlBar::FrameEnableDocking(this, CBRS_ALIGN_ANY, false), it seems that all is OK, but according your documentation, you say that it should be set to true.

Will I have some problem if I’m using CExtControlBar::FrameEnableDocking(this, CBRS_ALIGN_ANY, false) ?

Thanks.

Technical Support May 5, 2007 - 3:59 AM

Any docked control window is an instance of the CExtControlBar class or derived from it. A floating control bar window is combination of at least 3 windows: a floating mini frame window, a child dock bar window and a child control bar window. The floating mini frame window is an instance of the CExtMiniDockFrameWnd class (Prof-UIS) or an instance of the CMiniDockFrameWnd class (MFC) depending on the third parameter in the CExtControlBar::FrameEnableDocking method. We would recommend to set it to true so that CExtMiniDockFrameWnd can be used in this case. But you will have no problems if you set it to false if tabbed control bars are not used in your project. In any case, you can always send us your test project demonstrating the problems so we can clarify what’s wrong.