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 » Need help getting started with CExtTabWnd (trial) Collapse All
Subject Author Date
Dave Matsumoto Apr 29, 2005 - 12:03 PM

Hi,

I’m trying to get started with Prof-UIS by adding a CExtTabWnd to a dialog. Here are steps that I took:

1. Dropped a standard CTabCtrl onto my dialog and sized it
2. Created a variable for it
3. Changed the declaration of the variable from CTabCtrl to CExtTabWnd
4. Added several tabs by calling ItemInsert()
5. Called SelectionBoldSet()

When I start the application, everything looks normal, but when I click on the tabs, nothing happens. The text doesn’t become boldfaced. Since I have more tabs than will fit in a dialog, the > arrow on the tab control becomes enabled, but when I click on it, the tabs don’t scroll.

I then tried to inherit from CExtTabWnd, and overrode OnTabWndClickedItem. I then changed my variable declaration from CExtTabWnd to CDerived. When I click on a tab, my breakpoint inside of OnTabWndClickedItem doesn’t get hit.

Can someone please help me to get started using this class?

Thank you!

Technical Support Apr 30, 2005 - 10:36 AM

The CTabCtrl class in MFC is a wrapper around the tab common control. The CExtTabWnd class in Prof-UIS implements the Visual Studio .NET like tab line control. It is not based on the tab common control. You cannot use it to subclass the tab common control dropped onto the dialog. Please take a look at the IDD_PAGE_TAB_WINDOW dialog template resource in the ProfUIS_Controls sample application. You can find eight custom controls on this dialog form. They have ofUIS-TabWindow specified as the window class name and subclassed with CExtTabWnd members in the CPageTabWindow class in this sample. The main difference between Prof-UIS tab window and tab common control is that our tab window is solid tab line. The tab common control is transparent inside because it paints only tab areas next to one of its sides and borders next to other three sides.

If you need a property sheet-like window with our tab control, just use the tab page container window which is implemented in the CExtTabPageContainer class.

Finally, we should note that Prof-UIS includes several tab controls and tab page containers based on the following styles: colored One Note tabs, Excel like flat tabs and Visual Studio 2005 / Whidbey tabs.

Dave M Apr 29, 2005 - 4:24 PM

I figured it out... you just have to use a custom control in the resource editor.