Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Command Bars
  New Posts New Posts RSS Feed - CXTPTabControl-CXTPToolBar
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

CXTPTabControl-CXTPToolBar

 Post Reply Post Reply
Author
Message Reverse Sort Order
Oleg View Drop Down
Senior Member
Senior Member


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Topic: CXTPTabControl-CXTPToolBar
    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
Back to Top
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Kenneth View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 May 2004
Location: United States
Status: Offline
Points: 256
Post Options Post Options   Thanks (0) Thanks(0)   Quote Kenneth Quote  Post ReplyReply Direct Link To This Post 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?
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.