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 Tech Support » Understanding Docking and Auto-hide model: What is that Tab Control's official name and how do I cha Collapse All
Subject Author Date
Seth Strong Oct 27, 2006 - 8:30 AM

In the tabbedbars sample I see that control bars that are docked and unpinned (auto-hide?) on the right side of the main frame have separators in their tabbed container and control bars that are docked and unpinned on the left of the main frame. When I looked to see what’s happening, I realized, I could use some clarification on what classes I’m really looking for.

So I have my CExtControlBar. What happens to it when it is unpinned? What are the other classes involved? And are there some enumerated styles for adding separators and stuff to the tabbed bar that represents the hidden control bars?

Thanks again,
Seth

Technical Support Oct 28, 2006 - 12:09 PM

The CExtControlBar class implements a control bar similar to that of Visual Studio .NET / Visual Studio 2005 and you can see its default appearance in any sample but TabbedBars. The CExtControlBar class has a feature that allows you to completely customize its non-client area including the caption and border. If you set the CExtControlBar::g_bUseCustomNcArea static property to true, all control bars will be sending the CExtControlBar::g_nMsgCustomNcAreaQuery registered Windows message to the main frame window. Of course, you could handle it to calculate and paint the caption and border of each control bar anyway you want. In TabbedBars, this message is handled in the CMainFrame::OnMsgUseCustomNcArea()method so you can see how it may be done. The main SDI view window in this sample is the One Note tab page container window. The second yellow tab in this tab page container shows a dialog which allows you to configure the settings of CMainFrame::OnMsgUseCustomNcArea().

Seth Strong Oct 27, 2006 - 8:33 AM

I spotted my own typo. Control bars docked and unpinned on the left of the main frame do not have separators in the TabbedBars sample. I left that out of the first sentence.