Professional UI Solutions
Site Map   /  Register


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 » CExtTabMdi question Collapse All
Subject Author Date
tera tera Mar 13, 2009 - 2:58 AM


I want to display a background of selection MDITAB with red.

The thing of the non-selection wants to display it with blue.

Technical Support Mar 13, 2009 - 3:33 PM

The MDI tab control displayed on your screen shot is based on the one note tab control. The LPARAM values attached to its tab items are HWND handles of MDI child frame windows. So, you can use the CExtTabWnd::ItemFindByLParam() method to find the tab item index which corresponds to appropriate MDI child frame window. Then you should use the CExtTabOneNoteWnd::ItemGet() method to get the pointer to the CExtTabOneNoteWnd::TAB_ITEM_INFO_ONENOTE data structure which describes the tab item inside the One Note tabs. The CExtTabOneNoteWnd::TAB_ITEM_INFO_ONENOTE::GetColorBkLight() and CExtTabOneNoteWnd::TAB_ITEM_INFO_ONENOTE::GetColorBkDark() methods return the colors of the One Note tab item.