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 |
|
Dominik Braendlin
|
May 19, 2010 - 7:28 AM
|
Dear Tech Support, I would like to add a menu to the CExtTabMdiWhidbeyWnd TabCtrl. It should look and feel like the popup menu that shows if I right click on a Visual Studio 2008 file tab (“Save”, “Close”, “Close All But This” and so on). My first approach would be to subclass CExtTabMdiWhidbeyWnd and overwrite the OnTabWndClickedItem methode. Now I was wondering if there is a better way or if there is already an example somewhere. Thanks Adrian
|
|
Technical Support
|
May 20, 2010 - 1:38 PM
|
To override the OnTabWndClickedItem() virtual method is the correct approach. Please note, the CExtTabWnd::TAB_ITEM_INFO::LParamGet() returns the user-defined LPARAM value attached to the tab item in case of simple tab strip control. But MDI tabs are using this LPARAM for storing the HWND handle of the corresponding MDI child frame window.
|
|