<?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 : ContextMenu in Report Control....</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : ContextMenu in Report Control....]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 18 Apr 2026 16:52:35 +0000</pubDate>
  <lastBuildDate>Fri, 10 Jul 2009 03:14:23 +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=14712</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[ContextMenu in Report Control.... : In our project, were command routing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14712&amp;PID=50828&amp;title=contextmenu-in-report-control#50828</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2198">znakeeye</a><br /><strong>Subject:</strong> 14712<br /><strong>Posted:</strong> 10 July 2009 at 3:14am<br /><br /><DIV>In our project, were command routing is a complete mess, I have found this to work flawlessly:</DIV><DIV>&nbsp;</DIV><DIV>GetCommandBars()-&gt;TrackPopupMenuEx(menu.GetSubMenu(0), TPM_LEFTALIGN |TPM_RIGHTBUTTON, pItemNotify-&gt;pt.x, pItemNotify-&gt;pt.y, <strong>this, 0, GetOwner()</strong>);<BR></DIV><DIV>Where the owner is the main frame. E.g. m_pane.SetOwner(this).</DIV>]]>
   </description>
   <pubDate>Fri, 10 Jul 2009 03:14:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14712&amp;PID=50828&amp;title=contextmenu-in-report-control#50828</guid>
  </item> 
  <item>
   <title><![CDATA[ContextMenu in Report Control.... : Hi;GetCommandBars()-&amp;gt;TrackP...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14712&amp;PID=50820&amp;title=contextmenu-in-report-control#50820</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 14712<br /><strong>Posted:</strong> 09 July 2009 at 6:21pm<br /><br />Hi;<br><br>GetCommandBars()-&gt;TrackPopupMenuEx(menu.GetSubMenu(0), TPM_LEFTALIGN|TPM_RIGHTBUTTON, pItemNotify-&gt;pt.x, pItemNotify-&gt;pt.y, <font color="#990000"><b>this</b></font>,NULL);<br><br>in above statement <font color="#990000"><b>this </b></font>(the parent/owner of the report control receives the command. So you should implement the command handler in this class. If you do not want this, just replace <font color="#990000"><b>this </b></font>by a pointer to your desired destination window.<br>]]>
   </description>
   <pubDate>Thu, 09 Jul 2009 18:21:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14712&amp;PID=50820&amp;title=contextmenu-in-report-control#50820</guid>
  </item> 
  <item>
   <title><![CDATA[ContextMenu in Report Control.... : Cool. that makes the menu appear,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14712&amp;PID=50819&amp;title=contextmenu-in-report-control#50819</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=374">ddlittle</a><br /><strong>Subject:</strong> 14712<br /><strong>Posted:</strong> 09 July 2009 at 6:17pm<br /><br /><P>Cool.&nbsp; that makes the menu appear, but it doesn't respond to the WM_COMMAND.&nbsp; Any idea who might be grabbing that?&nbsp; I put a ON_COMMAND() handler for the menu choice.</P><DIV>&nbsp;</DIV><DIV>thanks!</DIV><DIV>&nbsp;</DIV><DIV>- David</DIV>]]>
   </description>
   <pubDate>Thu, 09 Jul 2009 18:17:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14712&amp;PID=50819&amp;title=contextmenu-in-report-control#50819</guid>
  </item> 
  <item>
   <title><![CDATA[ContextMenu in Report Control.... : Hi;Try this in parent/owner of...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14712&amp;PID=50817&amp;title=contextmenu-in-report-control#50817</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 14712<br /><strong>Posted:</strong> 09 July 2009 at 5:05pm<br /><br />Hi;<br><br>Try this in parent/owner of report control:<br><br>ON_NOTIFY(NM_RCLICK, 0, OnReportItemRClick)<br><br>void CStateViewEx::OnReportItemRClick(NMHDR * pNotifyStruct, LRESULT* /*result*/)<br>{<br>&nbsp;&nbsp;&nbsp; XTP_NM_REPORTRECORDITEM* pItemNotify = (XTP_NM_REPORTRECORDITEM*) pNotifyStruct;<br>&nbsp;&nbsp;&nbsp; if (_pGrid-&gt;GetRows()-&gt;GetCount()==0)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; return;<br>&nbsp;&nbsp;&nbsp; CMenu menu;<br>&nbsp;&nbsp;&nbsp; VERIFY(menu.LoadMenu(IDR_STATEREPORTCONTROL_POPUP));<br>&nbsp;&nbsp;&nbsp; // track menu<br>&nbsp;&nbsp;&nbsp; GetCommandBars()-&gt;TrackPopupMenuEx(menu.GetSubMenu(0), TPM_LEFTALIGN |TPM_RIGHTBUTTON, pItemNotify-&gt;pt.x, pItemNotify-&gt;pt.y, this, NULL);<br>}<br>]]>
   </description>
   <pubDate>Thu, 09 Jul 2009 17:05:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14712&amp;PID=50817&amp;title=contextmenu-in-report-control#50817</guid>
  </item> 
  <item>
   <title><![CDATA[ContextMenu in Report Control.... : I wanted to implement a context...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=14712&amp;PID=50816&amp;title=contextmenu-in-report-control#50816</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=374">ddlittle</a><br /><strong>Subject:</strong> 14712<br /><strong>Posted:</strong> 09 July 2009 at 4:52pm<br /><br />I wanted to implement a context menu in a report control, but can't seem to grab the rbuttondown or wm_contextmenu.&nbsp; I tried the reportcontrol sample, but there is no right-click menu there, either.<DIV>&nbsp;</DIV><DIV>any ideas? Thanks!</DIV><DIV>&nbsp;</DIV><DIV>- David</DIV>]]>
   </description>
   <pubDate>Thu, 09 Jul 2009 16:52:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=14712&amp;PID=50816&amp;title=contextmenu-in-report-control#50816</guid>
  </item> 
 </channel>
</rss>