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.
Subject |
Author |
Date |
|
Eric guez
|
Apr 7, 2010 - 8:51 AM
|
Hi,
I’m trying to mimic Excel’s tab behavior and haven’t found how to rename tabs in the same fashion (double click on tab).
Is there an easy way to achieve this ?
|
|
Eric guez
|
Apr 15, 2010 - 5:41 AM
|
|
|
Technical Support
|
Apr 8, 2010 - 9:59 AM
|
The CExtTabPageContainerWnd control uses the CExtTabWnd tab control for switching the active page window. Unfortunately the CExtTabWnd control does not support item renaming. You should create your own CExtTWPC < CExtTabWnd > derived class which handles the WM_LBUTTONDBLCLK message, hit tests the tab item using the CExtTabWnd::ItemHitTest() method and performs the item renaming. To make the CExtTabPageContainerWnd control using your tab control with rename-able tab items you should override the CExtTabPageContainerWnd::OnTabWndGetTabImpl() virtual method and instantiate your tab window in it.
|
|