![]() |
CXTPTabControl-CXTPToolBar |
Post Reply ![]() |
Author | |
Kenneth ![]() Senior Member ![]() ![]() Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
![]() ![]() ![]() ![]() ![]() 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?
|
|
![]() |
|
Kenneth ![]() Senior Member ![]() ![]() Joined: 23 May 2004 Location: United States Status: Offline Points: 256 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |