<?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 : Site vs. Owner Confusion</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Site vs. Owner Confusion]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 19:41:56 +0000</pubDate>
  <lastBuildDate>Mon, 29 Oct 2007 04:03:56 +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=8556</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[Site vs. Owner Confusion : yes, if you specify some CommandBars...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8556&amp;PID=27792&amp;title=site-vs-owner-confusion#27792</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8556<br /><strong>Posted:</strong> 29 October 2007 at 4:03am<br /><br />yes, if you specify some CommandBars object.<DIV>&nbsp;</DIV><DIV>also you can set TPM_RETURN flag to not send message but use return value from TrackPopupMenu.</DIV>]]>
   </description>
   <pubDate>Mon, 29 Oct 2007 04:03:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8556&amp;PID=27792&amp;title=site-vs-owner-confusion#27792</guid>
  </item> 
  <item>
   <title><![CDATA[Site vs. Owner Confusion : I have observed a slightly different...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8556&amp;PID=27789&amp;title=site-vs-owner-confusion#27789</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2994">pavold</a><br /><strong>Subject:</strong> 8556<br /><strong>Posted:</strong> 29 October 2007 at 3:48am<br /><br />I have observed a slightly different behavior.<br><br>What I'm trying to do is to show a popup menu, that will direct the messages to a concrete window.<br><br>If I set only the pSite argument in the TrackPopupMenu, WM_COMMAND message will actually end up in the main CommandBars site (in my case it is CMainFrame).<br><br>In other words if pOwner is not specified, global Site is used instead. <br><br>Is this expected?<br><br><br>]]>
   </description>
   <pubDate>Mon, 29 Oct 2007 03:48:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8556&amp;PID=27789&amp;title=site-vs-owner-confusion#27789</guid>
  </item> 
  <item>
   <title><![CDATA[Site vs. Owner Confusion : Yes, pOwner is window for WM_COMMAND...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8556&amp;PID=27773&amp;title=site-vs-owner-confusion#27773</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 8556<br /><strong>Posted:</strong> 29 October 2007 at 2:17am<br /><br />Yes, pOwner is window for WM_COMMAND message. if you don't set it - pSite will be used.<DIV>Better use non-static version: GetCommandBars()-&gt;TrackPopupMenuEx(...);</DIV>]]>
   </description>
   <pubDate>Mon, 29 Oct 2007 02:17:14 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8556&amp;PID=27773&amp;title=site-vs-owner-confusion#27773</guid>
  </item> 
  <item>
   <title><![CDATA[Site vs. Owner Confusion : Hi,CXTPCommandBars::TrackPopupMenu...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=8556&amp;PID=27760&amp;title=site-vs-owner-confusion#27760</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2994">pavold</a><br /><strong>Subject:</strong> 8556<br /><strong>Posted:</strong> 28 October 2007 at 10:06am<br /><br />Hi,<br><br>CXTPCommandBars::TrackPopupMenu has two CWnd* arguments. First one is set to pPopupBar-&gt;m_pSite, while the second one goes to m_pOwner.<br><br>What's the exact purpose (and distinction) of these arguments?<br><br>Originally I thought, that m_pSite is the window that will receive notification/messages from the popup bar controls. I got this idea from the fact that the message sending is perfomed by CXTPControl::NotifySite().<br><br>However, recently I have discovered that this is not true and the pOwner is actually the one that will receive the message.<br><br><br>Please explain.<br><br>Thanks in advance,<br>Pavol<br>]]>
   </description>
   <pubDate>Sun, 28 Oct 2007 10:06:36 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=8556&amp;PID=27760&amp;title=site-vs-owner-confusion#27760</guid>
  </item> 
 </channel>
</rss>