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 |
|
Sebastian Leopold
|
May 1, 2008 - 1:58 PM
|
Hello, is there a way to get an event when the user do a rightclick on a TAB of a CExtTabPageContainerWnd. I want to show a Contextmenü when the user does a Rightclick on such a Tab Button.
Regards Sebastian Leopold
|
|
Technical Support
|
May 2, 2008 - 2:23 AM
|
The CExtTabPageContainerWnd class instantiates a tab window in the following virtual method: virtual CExtTabWnd* OnTabWndGetTabImpl()
{
return new CExtTWPC < CExtTabWnd >;
} So you can override this virtual method and instantiate your tab window class which is derived from the CExtTWPC < CExtTabWnd > template based class. Your tab window should implement a CExtTabWnd::OnTabWndClickedItem() virtual method which allows you to catch any mouse button clicks on tab items. The LPARAM user defined values of tab items are set to HWND handles of page windows inserted into the tab page container. The parent window of tab window is the tab page container window.
|
|