<?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 : &#079;nRButt&#111;nUp in CXTPC&#111;ntrolButt&#111;n ???</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : &#079;nRButt&#111;nUp in CXTPC&#111;ntrolButt&#111;n ???]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 07:29:02 +0000</pubDate>
  <lastBuildDate>Mon, 02 Aug 2004 21:22:24 +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=1012</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[&#079;nRButt&#111;nUp in CXTPC&#111;ntrolButt&#111;n ??? :  Hi, I&amp;#039;m currently using...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1012&amp;PID=2638&amp;title=onrbuttonup-in-cxtpcontrolbutton#2638</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=286">softz</a><br /><strong>Subject:</strong> 1012<br /><strong>Posted:</strong> 02 August 2004 at 9:22pm<br /><br /><p>Hi,</p><p>I'm currently using an Appbar application. Hence, I've a few buttonson the Appbar which I used CXTPControlButton to make them function asand when a user click on them. According to the help file, <strong>CXTPControlButton </strong>is derived from <strong>CXTPControl</strong>.Therefore, I should be able to use the functions or override functionsin CXTPControl right? Here is my question. May I know how to use theOnRButtonUp(CPoint) of CXTPControl in CXTPControl? I've managed to putthe function in and compile without any errors. Unfortunately, nothinghappens when I performed a right click on the button. May I know how doI make this thing work?<br></p><p>PS: Sample code as follows<br></p><p><span style="color: rgb(0, 102, 0);">// file.h</span><br><span style="color: rgb(0, 0, 255);">class CMyClass : public CXTPControlButton</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">{</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">public:</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">&nbsp;&nbsp;&nbsp; </span><span style="color: rgb(0, 0, 255);">CMyClass</span><span style="color: rgb(0, 0, 255);">(void);</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">&nbsp;&nbsp;&nbsp; virtual ~</span><span style="color: rgb(0, 0, 255);">CMyClass</span><span style="color: rgb(0, 0, 255);">(void);</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">&nbsp;&nbsp;&nbsp; DECLARE_MESSAGE_MAP()</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">&nbsp;&nbsp;&nbsp; virtual void OnRButtonUp(CPoint point);</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">};</span><br></p><p><span style="color: rgb(0, 102, 0);">// file.cpp<br><span style="color: rgb(0, 0, 255);"></span></span><span style="color: rgb(0, 0, 255);">CMyClass</span><span style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 0, 255);">::</span></span><span style="color: rgb(0, 0, 255);">CMyClass</span><span style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 0, 255);">(void)</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">{</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">}</span><br style="color: rgb(0, 0, 255);"><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);"></span></span><span style="color: rgb(0, 0, 255);">CMyClass</span><span style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 0, 255);">::~</span></span><span style="color: rgb(0, 0, 255);">CMyClass</span><span style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 0, 255);">(void)</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">{</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">}</span><br style="color: rgb(0, 0, 255);"><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">BEGIN_MESSAGE_MAP(</span></span><span style="color: rgb(0, 0, 255);">CMyClass</span><span style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 0, 255);">, CXTPControlButton)</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">END_MESSAGE_MAP()</span><br style="color: rgb(0, 0, 255);"><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">void </span></span><span style="color: rgb(0, 0, 255);">CMyClass</span><span style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 0, 255);">::OnRButtonUp(CPoint point)</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">{</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">&nbsp;&nbsp;&nbsp; TRACE(_T("!@#!%$!@%$!#\n"));</span><br style="color: rgb(0, 0, 255);"><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">&nbsp;&nbsp;&nbsp; __super::OnRButtonUp(point);</span><br style="color: rgb(0, 0, 255);"><span style="color: rgb(0, 0, 255);">}</span><br></span><span style="color: rgb(0, 0, 255);"></span><br>Thank you very much</p><p>Regards</p><span style="font-size:10px"><br /><br />Edited by softz</span>]]>
   </description>
   <pubDate>Mon, 02 Aug 2004 21:22:24 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1012&amp;PID=2638&amp;title=onrbuttonup-in-cxtpcontrolbutton#2638</guid>
  </item> 
 </channel>
</rss>