Print Page | Close Window

CXTPTabControl-CXTPToolBar

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=7552
Printed Date: 03 March 2025 at 11:39am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: CXTPTabControl-CXTPToolBar
Posted By: Kenneth
Subject: CXTPTabControl-CXTPToolBar
Date Posted: 07 July 2007 at 6:34pm
I have placed a CXTPTabControl on a CXTPToolbar using the CXTPCustomControl.  The tab control extends the full length of the toolbar.  All that appears to work well.  Now I have a need to right mouse click on the CXTPTabControl and display a context menu.  How would this be done?



Replies:
Posted By: Kenneth
Date Posted: 08 July 2007 at 6:49pm
I finally figured out how to detect the right mouse click in mainfrm.cpp so I now have that working. 
 
Now I need to receive the TCN_SELCHANGE when the tabs are pressed.  What is the deep dark secret on how to do that?  I set the following in mainfrm.cpp:
 
ON_NOTIFY(TCN_SELCHANGE,IDC_FLATTABCTRL,OnTabViewNotify)
 
and I receive one notification on program start.  And thats it.  I can click on any tab but do not receive any futher notification of selection change.


Posted By: Oleg
Date Posted: 09 July 2007 at 1:10am
Hello,
 
Did you call
m_wndTabControl.SetOwner(this); // this  - CMainFrame.
 
Anyway think best way is override CXTPTabControl, override/catch messages you need and call methods of CMainFrame.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net