<?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 : C&#111;ntext menu for Tabs?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : C&#111;ntext menu for Tabs?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 21:42:55 +0000</pubDate>
  <lastBuildDate>Tue, 26 Jul 2005 04:48:21 +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=2615</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[C&#111;ntext menu for Tabs? : Thanks Oleg, overriding PreTranslateMessage()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2615&amp;PID=7847&amp;title=context-menu-for-tabs#7847</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=491">brianh</a><br /><strong>Subject:</strong> 2615<br /><strong>Posted:</strong> 26 July 2005 at 4:48am<br /><br /><P>Thanks Oleg, overriding PreTranslateMessage() and using the HitTest() function allows me to identify the tab being clicked, so I should&nbsp;be able to display a tab specific menu. :)&nbsp; Thanks again.</P>]]>
   </description>
   <pubDate>Tue, 26 Jul 2005 04:48:21 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2615&amp;PID=7847&amp;title=context-menu-for-tabs#7847</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntext menu for Tabs? : Only to override CXTPTabControl...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2615&amp;PID=7839&amp;title=context-menu-for-tabs#7839</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2615<br /><strong>Posted:</strong> 26 July 2005 at 1:51am<br /><br /><P>Only to override CXTPTabControl and its PreTranslateMessage</P><P>BOOL CTabControl2::PreTranslateMessage(MSG* pMsg)<BR>{<BR>&nbsp;&nbsp;if (pMsg-&gt;message == WM_LBUTTONDOWN ||<BR>&nbsp;&nbsp;&nbsp;pMsg-&gt;message == WM_RBUTTONDOWN ||<BR>&nbsp;&nbsp;&nbsp;pMsg-&gt;message == WM_MBUTTONDOWN ||<BR>&nbsp;&nbsp;&nbsp;pMsg-&gt;message == WM_LBUTTONDBLCLK ||<BR>&nbsp;&nbsp;&nbsp;pMsg-&gt;message == WM_RBUTTONDBLCLK)<BR>&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;if (pMsg-&gt;hwnd != m_hWnd)<BR>&nbsp;&nbsp;&nbsp;&nbsp;return CXTPTabControl ::PreTranslateMessage(pMsg);</P><P>&nbsp; //&nbsp;&nbsp;&nbsp;doo something.</P><P>&nbsp;&nbsp;}<BR>&nbsp;}</P><P>&nbsp;return CXTPTabControl ::PreTranslateMessage(pMsg);<BR>}<BR></P>]]>
   </description>
   <pubDate>Tue, 26 Jul 2005 01:51:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2615&amp;PID=7839&amp;title=context-menu-for-tabs#7839</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntext menu for Tabs? : Thanks Oleg, that&amp;#039;s just...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2615&amp;PID=7830&amp;title=context-menu-for-tabs#7830</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=491">brianh</a><br /><strong>Subject:</strong> 2615<br /><strong>Posted:</strong> 25 July 2005 at 8:31am<br /><br /><P>Thanks Oleg, that's just what I needed. :)</P><P>I would also like to do the same for the CXTPTabControl tabs, any idea how?</P><P>Thanks.</P>]]>
   </description>
   <pubDate>Mon, 25 Jul 2005 08:31:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2615&amp;PID=7830&amp;title=context-menu-for-tabs#7830</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntext menu for Tabs? :  ON_MESSAGE(WM_XTP_PRETRANSLATEMOUSEMSG,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2615&amp;PID=7791&amp;title=context-menu-for-tabs#7791</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 2615<br /><strong>Posted:</strong> 21 July 2005 at 11:19pm<br /><br /><FONT size=2><P>ON_MESSAGE(WM_XTP_PRETRANSLATEMOUSEMSG, OnWorkspaceMouseMsg)</P><P>&nbsp;</P><FONT size=2><P>LRESULT CMainFrame::OnWorkspaceMouseMsg(WPARAM wParam,LPARAM lParam)</P><P>{</P><P>CPoint point = CPoint((DWORD)lParam);</P><P>CXTPTabManagerItem* pItem = m_MTIClientWnd.HitTest(point);</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pItem)</P><P>{</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (wParam == WM_RBUTTONDOWN)</P><P>{</P><P>CWnd* pFrame = CWnd::FromHandle(pItem-&gt;GetHandle());</P><P>MDIActivate(pFrame);</P><P>m_MTIClientWnd.Refresh();</P><P>CMenu menuPopup;</P><P>VERIFY(menuPopup.LoadMenu(IDR_WORKSAPCE_POPUP));</P><P>m_MTIClientWnd.WorkspaceToScreen(&amp;point);</P><P>CXTPCommandBars::TrackPopupMenu(menuPopup.GetSubMenu(0), 0, point.x, point.y, </FONT><FONT color=#0000ff size=2>this</FONT><FONT size=2>);</P><P>&nbsp;</P><P>m_MTIClientWnd.Refresh();</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> TRUE;</P><P>}</P><P>&nbsp;</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> FALSE;</P><P>}</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> FALSE;</P><P>}</P></FONT></FONT>]]>
   </description>
   <pubDate>Thu, 21 Jul 2005 23:19:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2615&amp;PID=7791&amp;title=context-menu-for-tabs#7791</guid>
  </item> 
  <item>
   <title><![CDATA[C&#111;ntext menu for Tabs? : Is there an easy way to add a...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=2615&amp;PID=7784&amp;title=context-menu-for-tabs#7784</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=491">brianh</a><br /><strong>Subject:</strong> 2615<br /><strong>Posted:</strong> 21 July 2005 at 10:44am<br /><br /><P>Is there an easy way to add a context menu for the MDI tabs so that a user can right cick on them and display a menu&nbsp;for the selected tab, specifically I would like a 'close' option?&nbsp; This would also be useful for the tab control too. Thanks.</P>]]>
   </description>
   <pubDate>Thu, 21 Jul 2005 10:44:54 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=2615&amp;PID=7784&amp;title=context-menu-for-tabs#7784</guid>
  </item> 
 </channel>
</rss>