<?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 : Gallery control right click</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Gallery control right click]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 16:30:24 +0000</pubDate>
  <lastBuildDate>Mon, 07 May 2007 10:22:17 +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=6994</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[Gallery control right click : Unfortunettly i cant do that becauseI...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22626&amp;title=gallery-control-right-click#22626</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1940">BastianPL</a><br /><strong>Subject:</strong> 6994<br /><strong>Posted:</strong> 07 May 2007 at 10:22am<br /><br /><DIV>Unfortunettly i cant do that because&nbsp;I want to show the context menu in some cases. and if i put this line i will never show the context menu.</DIV><DIV>&nbsp;</DIV><DIV>Regards</DIV>]]>
   </description>
   <pubDate>Mon, 07 May 2007 10:22:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22626&amp;title=gallery-control-right-click#22626</guid>
  </item> 
  <item>
   <title><![CDATA[Gallery control right click : Hm, Actually you right, CXTPRibbonbar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22603&amp;title=gallery-control-right-click#22603</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6994<br /><strong>Posted:</strong> 07 May 2007 at 7:56am<br /><br />Hm, Actually you right, CXTPRibbonbar don't call OnRButtonDown for focused control :(<DIV>&nbsp;</DIV><DIV>Sorry, please patch sources - in  CXTPRibbonBar::OnRButtonDown add</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;if (pControl &amp;&amp; pControl-&gt;OnRButtonDown(point))<BR>&nbsp;&nbsp;return;<BR></DIV><DIV>now you will be able to override OnRButtonDown.</DIV>]]>
   </description>
   <pubDate>Mon, 07 May 2007 07:56:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22603&amp;title=gallery-control-right-click#22603</guid>
  </item> 
  <item>
   <title><![CDATA[Gallery control right click : Why i can override only WM_XTP_CONTROLRBUTTONUP...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22582&amp;title=gallery-control-right-click#22582</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1940">BastianPL</a><br /><strong>Subject:</strong> 6994<br /><strong>Posted:</strong> 05 May 2007 at 9:23pm<br /><br />Why i can override only <FONT color=#010001 size=2>WM_XTP_CONTROLRBUTTONUP and I can not find <FONT color=#010001 size=2>WM_XTP_CONTROLRBUTTONDOWN method ???<DIV></DIV><DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Thanks for any ideas.</DIV></FONT></FONT>]]>
   </description>
   <pubDate>Sat, 05 May 2007 21:23:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22582&amp;title=gallery-control-right-click#22582</guid>
  </item> 
  <item>
   <title><![CDATA[Gallery control right click : Oleg, I tried do it via your method...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22552&amp;title=gallery-control-right-click#22552</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1940">BastianPL</a><br /><strong>Subject:</strong> 6994<br /><strong>Posted:</strong> 04 May 2007 at 12:45pm<br /><br />Oleg, I tried do it via your method but it wouldn't work. Maybe I am doing something wrong. Instead of this i add following code do CMainFrame class: <DIV>&nbsp;</DIV><FONT color=#010001 size=2><P><FONT size=1>LRESULT</FONT></FONT><FONT size=1> <FONT color=#010001>CMainFrame</FONT>::<FONT color=#010001>OnControlRButtonUp</FONT>( <FONT color=#010001>WPARAM</FONT> <FONT color=#010001>wParam</FONT>, <FONT color=#010001>LPARAM</FONT> <FONT color=#010001>lParam</FONT> )</FONT><FONT size=1>{</FONT></P><P><FONT size=1><FONT color=#010001>CXTPControl</FONT> *<FONT color=#010001>pControl</FONT> = (<FONT color=#010001>CXTPControl</FONT> *)<FONT color=#010001>lParam</FONT>;</FONT></P><P><FONT size=1><FONT color=#0000ff>if</FONT> ( <FONT color=#010001>pControl</FONT>-&gt;<FONT color=#010001>GetID</FONT>() == <FONT color=#010001>ID_GALLERY_FORMAT</FONT> ) </FONT><FONT size=1>{ </P><DIV></FONT><FONT size=1><FONT color=#010001>CMenu</FONT> <FONT color=#010001>menu</FONT>;</FONT></DIV><P><FONT size=1><FONT color=#010001>menu</FONT>.<FONT color=#010001>LoadMenu</FONT>( <FONT color=#010001>IDR_MAINFRAME</FONT> );</FONT></P><P><FONT size=1><FONT color=#010001>CPoint</FONT> <FONT color=#010001>pt</FONT>;</FONT></P><P><FONT size=1><FONT color=#010001>GetCursorPos</FONT>( &amp;<FONT color=#010001>pt</FONT> );</FONT></P><P><FONT size=1><FONT color=#010001>UINT</FONT> <FONT color=#010001>nReturn</FONT> = <FONT color=#010001>CXTPCommandBars</FONT>::<FONT color=#010001>TrackPopupMenu</FONT>( <FONT color=#010001>menu</FONT>.<FONT color=#010001>GetSubMenu</FONT>(<FONT color=#800000>0</FONT>), <FONT color=#010001>TPM_NONOTIFY</FONT> | <FONT color=#010001>TPM_RECURSE</FONT> | <FONT color=#010001>TPM_RETURNCMD</FONT>, <FONT color=#010001>pt</FONT>.<FONT color=#010001>x</FONT>, <FONT color=#010001>pt</FONT>.<FONT color=#010001>y</FONT>, <FONT color=#0000ff>this</FONT> );</FONT></P><P><FONT color=#008000><FONT size=1>/*switch (nReturn)</FONT></P><P><FONT size=1>{</FONT></P><P><FONT size=1>....</FONT></P><P><FONT size=1>}*/</FONT></P></FONT><P><FONT size=1><FONT color=#0000ff>return</FONT> <FONT color=#010001>TRUE</FONT>;</FONT></P><P><FONT size=1>}</FONT></P><P><FONT size=1><FONT color=#0000ff>return</FONT> <FONT color=#010001>FALSE</FONT>;</FONT></P><P><FONT size=1>}</P><DIV></DIV><DIV></DIV><P></FONT><FONT size=2>And It is working - almost good because I still "under" my popup menu have a standard ribbon customization menu. How can I turn it off ???</P><DIV></DIV><P>&nbsp;</P><P>Thanks for Your patients ;)</FONT></P>]]>
   </description>
   <pubDate>Fri, 04 May 2007 12:45:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22552&amp;title=gallery-control-right-click#22552</guid>
  </item> 
  <item>
   <title><![CDATA[Gallery control right click : Maybe I should override also OnRButtonDown...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22548&amp;title=gallery-control-right-click#22548</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1940">BastianPL</a><br /><strong>Subject:</strong> 6994<br /><strong>Posted:</strong> 04 May 2007 at 10:53am<br /><br />Maybe I should override also OnRButtonDown method for RibbonBar ?<DIV>&nbsp;</DIV><DIV>Thanks for any advices</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 04 May 2007 10:53:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22548&amp;title=gallery-control-right-click#22548</guid>
  </item> 
  <item>
   <title><![CDATA[Gallery control right click : This is virtual function so i...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22543&amp;title=gallery-control-right-click#22543</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1940">BastianPL</a><br /><strong>Subject:</strong> 6994<br /><strong>Posted:</strong> 04 May 2007 at 10:15am<br /><br />This is virtual function so i don't need a message maps. My header is like you show and my cpp file is like below:<DIV>&nbsp;</DIV><FONT size=2><P>&nbsp;</P></FONT><FONT color=#010001 size=2><P>IMPLEMENT_XTP_CONTROL</FONT><FONT size=2>( </FONT><FONT color=#010001 size=2>CTestControlGallery</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>CXTPControlGallery</FONT><FONT size=2> )</P></FONT><FONT color=#008000 size=2><P>/*************************************************************************************************************************************************************\</P><P>*</P><P>* CTestControlGallery()</P><P>*</P><P>* DESCRIPTION:</P><P>* Constructor</P><P>*</P><P>\*************************************************************************************************************************************************************/</P></FONT><FONT color=#010001 size=2><P>CTestControlGallery</FONT><FONT size=2>::</FONT><FONT color=#010001 size=2>CTestControlGallery</FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2>)</P><P>{</P><P>}</P></FONT><FONT color=#008000 size=2><P>/*************************************************************************************************************************************************************\</P><P>*</P><P>* ~CTestControlGallery()</P><P>*</P><P>* DESCRIPTION:</P><P>* Destructor</P><P>*</P><P>\*************************************************************************************************************************************************************/</P></FONT><FONT color=#010001 size=2><P>CTestControlGallery</FONT><FONT size=2>::~</FONT><FONT color=#010001 size=2>CTestControlGallery</FONT><FONT size=2>(</FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2>)</P><P>{</P><P>}</P></FONT><FONT color=#008000 size=2><P>/*************************************************************************************************************************************************************\</P><P>*</P><P>* BOOL OnRButtonDown( CPoint point )</P><P>*</P><P>* DESCRIPTION:</P><P>* On Right Button down message handler</P><P>*</P><P>\*************************************************************************************************************************************************************/</P></FONT><FONT color=#010001 size=2><P>BOOL</FONT><FONT size=2> </FONT><FONT color=#010001 size=2>CTestControlGallery</FONT><FONT size=2>::</FONT><FONT color=#010001 size=2>OnRButtonDown</FONT><FONT size=2>( </FONT><FONT color=#010001 size=2>CPoint</FONT><FONT size=2> </FONT><FONT color=#010001 size=2>point</FONT><FONT size=2> )</P><P>{</P><P></FONT><FONT color=#010001 size=2>AfxMessageBox</FONT><FONT size=2>( </FONT><FONT color=#ff0000 size=2>"TEST"</FONT><FONT size=2> );</P><P></FONT><FONT color=#0000ff size=2>return</FONT><FONT size=2> </FONT><FONT color=#010001 size=2>FALSE</FONT><FONT size=2>;</P><P>}</P><DIV></DIV><P>&nbsp;</P><P>but id doesn't work. Insetad message "Test " appears menu to cuatomize ribbon bar.</FONT></P>]]>
   </description>
   <pubDate>Fri, 04 May 2007 10:15:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22543&amp;title=gallery-control-right-click#22543</guid>
  </item> 
  <item>
   <title><![CDATA[Gallery control right click :   oleg wrote:Hi,   something...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22406&amp;title=gallery-control-right-click#22406</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1940">BastianPL</a><br /><strong>Subject:</strong> 6994<br /><strong>Posted:</strong> 27 April 2007 at 7:23am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br />Hi, <DIV>&nbsp;</DIV><DIV>something like:</DIV><DIV>&nbsp;</DIV><DIV>class&nbsp;CMyControlGallery : public CXTPControlGallery<BR>{<BR>&nbsp;DECLARE_XTP_CONTROL(CMyControlGallery )<BR>protected:<BR>&nbsp;virtual BOOL OnRButtonDown(CPoint point);</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>etc.</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV><DIV></DIV><DIV></DIV>thanks</DIV>]]>
   </description>
   <pubDate>Fri, 27 Apr 2007 07:23:52 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22406&amp;title=gallery-control-right-click#22406</guid>
  </item> 
  <item>
   <title><![CDATA[Gallery control right click : Hi,  something like:  classCMyControlGallery...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22405&amp;title=gallery-control-right-click#22405</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6994<br /><strong>Posted:</strong> 27 April 2007 at 6:58am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>something like:</DIV><DIV>&nbsp;</DIV><DIV>class&nbsp;CMyControlGallery : public CXTPControlGallery<BR>{<BR>&nbsp;DECLARE_XTP_CONTROL(CMyControlGallery )<BR>protected:<BR>&nbsp;virtual BOOL OnRButtonDown(CPoint point);</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>etc.</DIV>]]>
   </description>
   <pubDate>Fri, 27 Apr 2007 06:58:07 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22405&amp;title=gallery-control-right-click#22405</guid>
  </item> 
  <item>
   <title><![CDATA[Gallery control right click : I am trying this code in myCMainFrame...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22399&amp;title=gallery-control-right-click#22399</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1940">BastianPL</a><br /><strong>Subject:</strong> 6994<br /><strong>Posted:</strong> 27 April 2007 at 6:15am<br /><br />I am trying this code in my&nbsp;CMainFrame but it doesn't work:<DIV>&nbsp;</DIV><DIV>In CMainFrame.h i declared<BR></DIV><FONT size=2><P></FONT><FONT color=#010001 size=2>afx_msg</FONT><FONT size=2> </FONT><FONT color=#0000ff size=2>void</FONT><FONT size=2> </FONT><FONT color=#010001 size=2>OnRButtonDown</FONT><FONT size=2>( </FONT><FONT color=#010001 size=2>UINT</FONT><FONT size=2> </FONT><FONT color=#010001 size=2>nFlags</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>CPoint</FONT><FONT size=2> </FONT><FONT color=#010001 size=2>pt</FONT><FONT size=2> );</P><DIV></DIV><P>&nbsp;</P><P>In CMainFrame.cpp</P><DIV></DIV><FONT size=2><P></FONT><FONT color=#010001 size=2>ON_WM_RBUTTONDOWN</FONT><FONT size=2>()</P><DIV></DIV><DIV></DIV>and function body:<DIV>&nbsp;</DIV><DIV><FONT color=#0000ff size=2><P>void</FONT><FONT size=2> </FONT><FONT color=#010001 size=2>CMainFrame</FONT><FONT size=2>::</FONT><FONT color=#010001 size=2>OnRButtonDown</FONT><FONT size=2>( </FONT><FONT color=#010001 size=2>UINT</FONT><FONT size=2> </FONT><FONT color=#010001 size=2>nFlags</FONT><FONT size=2>, </FONT><FONT color=#010001 size=2>CPoint</FONT><FONT size=2> </FONT><FONT color=#010001 size=2>pt</FONT><FONT size=2> )</P><P>{</P><P></FONT><FONT color=#010001 size=2>AfxMessageBox</FONT><FONT size=2>( </FONT><FONT color=#ff0000 size=2>"RBUTTONDOWN()"</FONT><FONT size=2> );</P><P>}</P><DIV></DIV></FONT></DIV></FONT></FONT>]]>
   </description>
   <pubDate>Fri, 27 Apr 2007 06:15:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22399&amp;title=gallery-control-right-click#22399</guid>
  </item> 
  <item>
   <title><![CDATA[Gallery control right click : Can You show me some example ???  Thanks...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22396&amp;title=gallery-control-right-click#22396</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1940">BastianPL</a><br /><strong>Subject:</strong> 6994<br /><strong>Posted:</strong> 27 April 2007 at 5:25am<br /><br />Can You show me some example ???<DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Fri, 27 Apr 2007 05:25:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6994&amp;PID=22396&amp;title=gallery-control-right-click#22396</guid>
  </item> 
 </channel>
</rss>