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 Tech Support » CExtTabPageContainerWnd mouse click events Collapse All
Subject Author Date
Offer Har Sep 2, 2008 - 11:05 AM

I would like to add a context menu for my tab container when the user right click on the tab control, and to know on which tab index he clicked.


Please advise.


Thanks,

Ron

Technical Support Sep 24, 2008 - 5:03 AM

This the simple dialog based project with the tab page container control created inside the main dialog window. It demonstrates how to handle right mouse clicks on the tab items of the tab control inside tab page container window. These right clicks can be optionally handled in the tab page container class, in the main dialog class (used as parent window of the tab page container window) or even in both classes including up and down left mouse button events. You can simply display context menu instead of message box displayed in our test project. The ::GetCursorPos() Win32 API should be used for retrieving mouse cursor position which is needed in parameters of the CExtPopupMenuWnd::TrackPopupMenu() method.

Technical Support Sep 4, 2008 - 5:33 AM

You can read about this in this thread.

Offer Har Sep 4, 2008 - 6:17 AM

Can you please highlight what needs to be done?


This thread is very messy, and not chonologically ordered.


I tried override OnTabWndClickedItem, but it is never called - what am I missing?


Thanks,

Ron.