<?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 : Context menu on gallery item</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Context menu on gallery item]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 12:51:20 +0000</pubDate>
  <lastBuildDate>Fri, 09 Mar 2012 05:37:37 +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=19559</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[Context menu on gallery item : I need to show context menu when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19559&amp;PID=67769&amp;title=context-menu-on-gallery-item#67769</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7372">ssejud</a><br /><strong>Subject:</strong> 19559<br /><strong>Posted:</strong> 09 March 2012 at 5:37am<br /><br />I need to show context menu when clicked on gallery item. I overrided method&nbsp;OnRButtonUp and show context menu then, but, when user clicks on menu item which is outside gallery popup area, gallery disappears, and i want to prevent that.&nbsp;<div><br></div><div>my code:</div><div><br></div><div><div>BOOL MyGallery::OnRButtonUp(CPoint point)</div><div>{</div><div>&nbsp; &nbsp;CMenu menu;</div><div>&nbsp; &nbsp;menu.CreatePopupMenu();</div><div><br></div><div>&nbsp; &nbsp;// Here I add some menu items.</div><div><br></div><div>&nbsp; &nbsp;CPoint &nbsp; &nbsp; &nbsp;cursor;</div><div>&nbsp; &nbsp;GetCursorPos(&amp;cursor);</div><div><br></div><div>&nbsp; &nbsp;UINT returnValue = (UINT)menu.TrackPopupMenu( TPM_RETURNCMD|TPM_LEFTBUTTON|TPM_NONOTIFY, cursor.x, cursor.y, AfxGetMainWnd() );</div><div><br></div><div>&nbsp; &nbsp;// Here I process menu choice.</div><div><br></div><div>&nbsp; &nbsp;return TRUE;</div><div>}</div></div><div><br></div><div>How to prevent closing gallery when clicked outside it while context menu is shown?</div>]]>
   </description>
   <pubDate>Fri, 09 Mar 2012 05:37:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19559&amp;PID=67769&amp;title=context-menu-on-gallery-item#67769</guid>
  </item> 
 </channel>
</rss>