<?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 : How to implement shortcut menus</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : How to implement shortcut menus]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 23:17:59 +0000</pubDate>
  <lastBuildDate>Fri, 22 Aug 2008 01:02:35 +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=11799</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[How to implement shortcut menus : Hello,  Add(&amp;#034;MapperPopup&amp;#034;,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11799&amp;PID=40240&amp;title=how-to-implement-shortcut-menus#40240</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11799<br /><strong>Posted:</strong> 22 August 2008 at 1:02am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Add("MapperPopup", <strong>xtpBarPopup</strong>) don't really add it to commandBars collection but just create it and return pointer. so it will be destroyed when your pPopup&nbsp; will be destroyed.</DIV><DIV>&nbsp;</DIV><DIV>Better add it to ContextMenus collection.</DIV>]]>
   </description>
   <pubDate>Fri, 22 Aug 2008 01:02:35 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11799&amp;PID=40240&amp;title=how-to-implement-shortcut-menus#40240</guid>
  </item> 
  <item>
   <title><![CDATA[How to implement shortcut menus :  It looks like all the samples...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11799&amp;PID=40228&amp;title=how-to-implement-shortcut-menus#40228</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4463">MadRiver</a><br /><strong>Subject:</strong> 11799<br /><strong>Posted:</strong> 21 August 2008 at 1:45pm<br /><br />It looks like all the samples create the popup menu/commandbar at the time it is needed.<br><br>Two questions:<br>-- What happens when this is done multiple times?&nbsp; Are duplicate items ignored?<br><br>-- I would like to create my context menus at startup, then display them in the specific event handler.&nbsp; It's not clear how to find/retrieve the correct commandbar/popup object.<br>For example, if I do something like this:<br>&nbsp;&nbsp;&nbsp; ICommandBarPtr&nbsp; pPopup = 0;<br>&nbsp;&nbsp;&nbsp; pPopup = g_spCommandBars-&gt;Add("MapperPopup", xtpBarPopup);<br>&nbsp;&nbsp;&nbsp; pControls = pPopup-&gt;GetControls();<br>&nbsp;&nbsp;&nbsp; // add controls...<br><br>If all that happens in the event handler for the right mouse click, this<br>&nbsp;&nbsp;&nbsp; pPopup-&gt;ShowPopup();<br>works as expected.<br><br>Thanks for any pointers...<br>]]>
   </description>
   <pubDate>Thu, 21 Aug 2008 13:45:30 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11799&amp;PID=40228&amp;title=how-to-implement-shortcut-menus#40228</guid>
  </item> 
  <item>
   <title><![CDATA[How to implement shortcut menus : Hello,  Most our samples show...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11799&amp;PID=39769&amp;title=how-to-implement-shortcut-menus#39769</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11799<br /><strong>Posted:</strong> 13 August 2008 at 1:20am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Most our samples show context menus. Please check them.</DIV>]]>
   </description>
   <pubDate>Wed, 13 Aug 2008 01:20:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11799&amp;PID=39769&amp;title=how-to-implement-shortcut-menus#39769</guid>
  </item> 
  <item>
   <title><![CDATA[How to implement shortcut menus : Hello,Our application has several...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11799&amp;PID=39756&amp;title=how-to-implement-shortcut-menus#39756</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4382">Number8</a><br /><strong>Subject:</strong> 11799<br /><strong>Posted:</strong> 12 August 2008 at 1:57pm<br /><br />Hello,<br><br>Our application has several different kinds of child windows -- a graph, a spreadsheet, a text editor, etc.<br>Can we use some kind of CommandBar to implement a shortcut menu for each window?&nbsp; How do we activate the menu (presumably from the WM_RBUTTONDOWN handler for the window)?<br><br>Thanks for any advice or pointers to articles/samples/tutorials...<br><br>]]>
   </description>
   <pubDate>Tue, 12 Aug 2008 13:57:32 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11799&amp;PID=39756&amp;title=how-to-implement-shortcut-menus#39756</guid>
  </item> 
 </channel>
</rss>