<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Codejock Developer Community : Question about the right click on CXTPTabControl.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Question about the right click on CXTPTabControl.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 05:42:43 +0000</pubDate>
  <lastBuildDate>Wed, 04 Apr 2007 06:49:00 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>forum.codejock.com/RSS_post_feed.asp?TID=6796</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Codejock Developer Community]]></title>
   <url>http://forum.codejock.com/forum_images/codejock-logo.gif</url>
   <link>http://forum.codejock.com/</link>
  </image>
  <item>
   <title><![CDATA[Question about the right click on CXTPTabControl. :  Hello,perhaps this will solve...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6796&amp;PID=21681&amp;title=question-about-the-right-click-on-cxtptabcontrol#21681</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2014">akur</a><br /><strong>Subject:</strong> 6796<br /><strong>Posted:</strong> 04 April 2007 at 6:49am<br /><br />Hello,<br><br>perhaps this will solve your problem - even if indirectly. You can catch contextmenu requests in your CMyView (the parent window of your m_wndTabControl). You can use a code like this:<br><br>void CMyView::<font color="#0000ff"><b>OnContextMenu</b></font>(CWnd* pWnd, CPoint point)<br>{<br>&nbsp;&nbsp;&nbsp; if (point == CPoint(-1, -1)) // ignore contextmenu from keyboard<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return;<br><br>&nbsp;&nbsp;&nbsp; if (dynamic_cast&lt;CXTPTabControl*&gt; (pWnd))<br>&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_wndTabControl.ScreenToClient(&amp;point);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <font color="#0000ff"><b>CXTPTabManagerItem</b></font>* pRightClickedItem = m_wndTabControl.<b><font color="#0000ff">HitTest(point)</font></b>;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (pRightClickedItem)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // ... use 'pRightClickedItem'<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br><br><br>]]>
   </description>
   <pubDate>Wed, 04 Apr 2007 06:49:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6796&amp;PID=21681&amp;title=question-about-the-right-click-on-cxtptabcontrol#21681</guid>
  </item> 
  <item>
   <title><![CDATA[Question about the right click on CXTPTabControl. : Hi,  I intent to get the notify...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6796&amp;PID=21680&amp;title=question-about-the-right-click-on-cxtptabcontrol#21680</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2535">Joanna</a><br /><strong>Subject:</strong> 6796<br /><strong>Posted:</strong> 04 April 2007 at 5:23am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>I intent to get the notify when the user right click on the CXTPTabControl, but when I use following code to define this notify, it cannot work. When the user right click onthe CXTPTabControl, the code cannot run into the fucntion of "OnTabContrlRClick"?</DIV><DIV>&nbsp;</DIV><DIV>Does the OnTabContrlRClick cannot response to the "NW_RCLICK" notification? But it can respond to the "TCN_SELCHANGE".</DIV><DIV>Then how can I get the notify of the right click on the CXTPTabControl?</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>ON_NOTIFY(TCN_SELCHANGE, IDC_TABCONTROL, OnSelectedChanged)</DIV><DIV>&nbsp;</DIV><DIV>ON_NOTIFY(NM_RCLICK, IDC_TABCONTROL, OnTabContrlRClick)</DIV><DIV>&nbsp;</DIV><DIV>PS: </DIV><DIV>Using Xtreme ToolkitPro 2006 v10.1.1.0 in VS2005.</DIV><DIV>&nbsp;</DIV><DIV>And the structure of my program is like this:</DIV><DIV>The CMainFrame is deviced from CXTPMDIFrameWnd, so the document are tabbed in the top.</DIV><DIV>But in each view, there are aslo tabbed views in the buttom of each view, so in the CMyView, there is an member variable as following: </DIV><DIV>CXTPTabControl m_wndTabControl; </DIV><DIV>&nbsp;</DIV><DIV>Here, I intent to get the notify of the right click on the "CXTPTabControl", but I failed, so looking for your help.</DIV><DIV>&nbsp;</DIV><DIV>Thanks!</DIV><DIV>Joanna&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 04 Apr 2007 05:23:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6796&amp;PID=21680&amp;title=question-about-the-right-click-on-cxtptabcontrol#21680</guid>
  </item> 
 </channel>
</rss>