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 » Some Example Collapse All
Subject Author Date
Jayender V S May 26, 2006 - 4:23 AM

Hi,
Can u please provide me some sample example using CExtTabWnd for creating Tab control ?
waiting for ur reply
thanks,
Jay

Technical Support May 26, 2006 - 7:25 AM

We can provide you with a sample application but we need details about which project you really need? Is it a dialog or frame window-based application? How the tab window should be created? Using CExtTabWnd::Create() method or using the custom control on a dialog form?

Jayender V S May 26, 2006 - 7:32 AM

Its just a dialog based applciation .. just need a sample with 2 child dialog in a tab control . I can easily do it in MFC, but could not do it in using Prof UIS. Just an sample is enough
waiting for ur reply .
Thanks,
jayender

Technical Support May 26, 2006 - 9:03 AM

Please take a look at the ProfUIS_Controls sample. There are two pages Tab Window and Tab Containers. In the first page you can see how to use the CExtTabWnd, CExtTabFlatWnd, CExtTabWhidbeyWnd, CExtTabOneNoteWnd and CExtTabButtonsWnd controls. On the second page you can see how to use the CExtTabPageContainerWnd, CExtTabPageContainerFlatWnd, CExtTabPageContainerWhidbeyWnd, CExtTabPageContainerOneNoteWnd and CExtTabPageContainerButtonsWnd controls. If you need to insert two child dialogs, you need to use the tab containers from page two.

Jayender V S May 27, 2006 - 4:34 AM

Well i have used CExtTabPageContainerWnd .. and it works fine... :)
now how to color the dialog (Tab control), like different colo for different tab dialog ?

Technical Support May 28, 2006 - 12:52 PM

What you are asking is more than a question about painting a colored background in a page window inside the tab page container. The full version of your question is: how to paint a custom background that is consistent between controls anywhere? This feature is supported by all the Prof-UIS paint managers but is turned off by default. This feature is demonstrated in the TabbedBars sample application where you can see both a custom hurricane-like background in the main frame window and a colored background in the page windows of the One Note tab page container.

First of all, you should enable the custom background in the currently installed paint manager:

g_PaintManager->m_bCustomBackgroundInheritanceEnabled = true;
Please note this code should be invoked both at startup and after installing a new paint manager. When the custom background painting is set on, any window starts receiving the CExtPaintManager::g_nMsgPaintInheritedBackground registered Windows message which allows to paint any background you need. The CChildView class in the TabbedBars sample is kind of the CExtTabPageContainerOneNoteWnd page container window. The CChildView class handles the CExtPaintManager::g_nMsgPaintInheritedBackground registered Windows message in the CChildView::OnMsgPaintInheritedBackground() handler method which you can use as an example.