<?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 : sub menu popup problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : sub menu popup problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 12 May 2026 20:02:53 +0000</pubDate>
  <lastBuildDate>Thu, 25 Sep 2003 10:07:08 +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=169</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[sub menu popup problem : Thank you Douglas. It is the problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=169&amp;PID=350&amp;title=sub-menu-popup-problem#350</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 169<br /><strong>Posted:</strong> 25 September 2003 at 10:07am<br /><br /><P>Thank you Douglas. It is the problem of CommandBars 8.5 only, We release hotfix (8.51) on this week:</P><P>&nbsp;</P><P>you can patch your source :</P><FONT color=#0000ff><FONT color=#0000ff><P>void</FONT><FONT color=#000000> </FONT><FONT color=#0000ff>CXTPControl</FONT><FONT color=#000000>::</FONT><FONT color=#880000>OnExecute</FONT><FONT color=#000000>()</FONT></P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT color=#808080>m_bPressed</FONT> = <FONT color=#a000a0>TRUE_KEYBOARD</FONT>;</P><P><FONT color=#0000ff>CXTPCommandBar</FONT>* <FONT color=#808080>pCommandBar</FONT> = <FONT color=#808080>m_pParent</FONT>-&gt;<FONT color=#880000>GetSourceParentCommandBar</FONT>();</P><P><FONT color=#0000ff>if</FONT> (<FONT color=#808080>pCommandBar</FONT>-&gt;<FONT color=#808080>m_pReturnCmd</FONT>)</P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P>*<FONT color=#808080>pCommandBar</FONT>-&gt;<FONT color=#808080>m_pReturnCmd</FONT> = <FONT color=#808080>m_nId</FONT>;</P><P><FONT color=#0000ff>return</FONT>;</P></BLOCKQUOTE><P>}</P><P><FONT color=#0000ff>NMXTPCONTROL</FONT> <FONT color=#808080>tagNMCONTROL</FONT>;</P><P><FONT color=#808080>tagNMCONTROL</FONT>.<FONT color=#808080>hdr</FONT>.<FONT color=#808080>code</FONT> = <FONT color=#a000a0>CBN_XTP_EXECUTE</FONT>;</P><P><FONT color=#808080>tagNMCONTROL</FONT>.<FONT color=#808080>hdr</FONT>.<FONT color=#808080>idFrom</FONT> = <FONT color=#808080>m_nId</FONT>;</P><P><FONT color=#808080>tagNMCONTROL</FONT>.<FONT color=#808080>hdr</FONT>.<FONT color=#808080>hwndFrom</FONT> = 0;</P><P><FONT color=#808080>tagNMCONTROL</FONT>.<FONT color=#808080>pControl</FONT> = <FONT color=#0000ff>this</FONT>; </P><P><FONT color=#0000ff>CWnd</FONT>* <FONT color=#808080>pOwner</FONT> = <FONT color=#808080>m_pParent</FONT>-&gt;<FONT color=#880000>GetOwnerSite</FONT>();</P><P><FONT color=#0000ff>CXTPCommandBars</FONT>* <FONT color=#808080>pCommandBars</FONT> = <FONT color=#808080>m_pParent</FONT>-&gt;<FONT color=#880000>GetCommandBars</FONT>();</P><P><FONT color=#880000>XTPMouseManager</FONT>()-&gt;<FONT color=#880000>SendTrackLost</FONT>();</P><P><FONT color=#0000ff>if</FONT> (<FONT color=#808080>m_nId</FONT> == 0)</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT color=#0000ff>return</FONT>;</P></BLOCKQUOTE><P>&nbsp;</P><P><FONT color=#0000ff>try</P></FONT><P>{ </P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT color=#0000ff>if</FONT> (<FONT color=#808080>pCommandBars</FONT>)</P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT color=#808080>pCommandBars</FONT>-&gt;<FONT color=#880000>SetCommandUsed</FONT>(<FONT color=#808080>m_nId</FONT>);</P></BLOCKQUOTE><P>}</P><P><FONT color=#0000ff>if</FONT> (<FONT color=#808080>pOwner</FONT>-&gt;<FONT color=#a000a0>SendMessage</FONT>(<FONT color=#a000a0>WM_XTP_COMMAND</FONT>, <FONT color=#808080>m_nId</FONT>, (<FONT color=#0000ff>LPARAM</FONT>)&amp;<FONT color=#808080>tagNMCONTROL</FONT>) == 0)</P><P>{</P><BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px"><P><FONT color=#808080>pOwner</FONT>-&gt;<FONT color=#a000a0>SendMessage</FONT>(<FONT color=#a000a0>WM_COMMAND</FONT>, <FONT color=#808080>m_nId</FONT>);</P></BLOCKQUOTE><P>}</P></BLOCKQUOTE><P>}</P><P><FONT color=#0000ff>catch</FONT> (...) </P><P>{</P><P>}</P></BLOCKQUOTE><P>}</P></FONT>]]>
   </description>
   <pubDate>Thu, 25 Sep 2003 10:07:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=169&amp;PID=350&amp;title=sub-menu-popup-problem#350</guid>
  </item> 
  <item>
   <title><![CDATA[sub menu popup problem : When I call CommandBars::TrackPopupMenu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=169&amp;PID=345&amp;title=sub-menu-popup-problem#345</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=97">douglashogan</a><br /><strong>Subject:</strong> 169<br /><strong>Posted:</strong> 24 September 2003 at 5:00am<br /><br /><P>When I call CommandBars::TrackPopupMenu (), if the popup menu i am calling has a futher sub popup menu, then I don't think my owner parameter is getting sent to the sub popup window. Therefore, any commands from this sub menu are sent to the mainframe window (NULL) and not to&nbsp;the owner window that I have specified. </P><P>&nbsp;</P><P>Also, TrackPopupMenu seems to have a confusing definition with a site window and an owner window being specified. The doc is a little out of sync here. </P><P>&nbsp;</P>]]>
   </description>
   <pubDate>Wed, 24 Sep 2003 05:00:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=169&amp;PID=345&amp;title=sub-menu-popup-problem#345</guid>
  </item> 
 </channel>
</rss>