<?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 : SOLVED: Enumerae xtpControlPopup?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : SOLVED: Enumerae xtpControlPopup?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 12 Jun 2026 23:13:29 +0000</pubDate>
  <lastBuildDate>Mon, 13 Oct 2008 06:20:41 +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=12289</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[SOLVED: Enumerae xtpControlPopup? : Hi, Guess it converted to ICommandBarPopupPtr....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12289&amp;PID=41936&amp;title=solved-enumerae-xtpcontrolpopup#41936</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12289<br /><strong>Posted:</strong> 13 October 2008 at 6:20am<br /><br />Hi,<DIV>Guess it converted to ICommandBarPopupPtr. or something. See tlh.</DIV>]]>
   </description>
   <pubDate>Mon, 13 Oct 2008 06:20:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12289&amp;PID=41936&amp;title=solved-enumerae-xtpcontrolpopup#41936</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Enumerae xtpControlPopup? :    Baldur wrote: // Now what?...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12289&amp;PID=41884&amp;title=solved-enumerae-xtpcontrolpopup#41884</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4382">Number8</a><br /><strong>Subject:</strong> 12289<br /><strong>Posted:</strong> 10 October 2008 at 3:41pm<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by Baldur" alt="Originally posted by Baldur" style="vertical-align: text-bottom;" /> <strong>Baldur wrote:</strong><br /><br /><font color="#008000"><div>// Now what?&nbsp; pControl-&gt;GetCControls() returns siblings</div><div>&nbsp;</div><div><font color="#000000">ICommandBarControlPopup * pControlPopup = (ICommandBarControlPopup * )pControl;</font></div><div><font color="#000000"></font>&nbsp;</div><div><font color="#000000">Now you have access to the subcontrols.</font></div></font></td></tr></table><br><br>Hmmm,&nbsp;&nbsp; there is no "ICommandBarPopup" in my .tlh or .tli.<br><br>If I use ICommandBarPopup, I get a casting error.<br><br>]]>
   </description>
   <pubDate>Fri, 10 Oct 2008 15:41:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12289&amp;PID=41884&amp;title=solved-enumerae-xtpcontrolpopup#41884</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Enumerae xtpControlPopup? :  // Now what? pControl-&amp;gt;GetCControls()...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12289&amp;PID=41488&amp;title=solved-enumerae-xtpcontrolpopup#41488</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2531">Baldur</a><br /><strong>Subject:</strong> 12289<br /><strong>Posted:</strong> 29 September 2008 at 5:50pm<br /><br /><FONT color=#008000><DIV>// Now what?&nbsp; pControl-&gt;GetCControls() returns siblings</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#000000>ICommandBarControlPopup * pControlPopup = (ICommandBarControlPopup * )pControl;</FONT></DIV><DIV><FONT color=#000000></FONT>&nbsp;</DIV><DIV><FONT color=#000000>Now you have access to the subcontrols.</FONT></DIV></FONT>]]>
   </description>
   <pubDate>Mon, 29 Sep 2008 17:50:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12289&amp;PID=41488&amp;title=solved-enumerae-xtpcontrolpopup#41488</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Enumerae xtpControlPopup? : Right :) ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12289&amp;PID=41479&amp;title=solved-enumerae-xtpcontrolpopup#41479</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 12289<br /><strong>Posted:</strong> 29 September 2008 at 2:41pm<br /><br />Right :)]]>
   </description>
   <pubDate>Mon, 29 Sep 2008 14:41:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12289&amp;PID=41479&amp;title=solved-enumerae-xtpcontrolpopup#41479</guid>
  </item> 
  <item>
   <title><![CDATA[SOLVED: Enumerae xtpControlPopup? :  Hello,I am trying to enumerate...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=12289&amp;PID=41475&amp;title=solved-enumerae-xtpcontrolpopup#41475</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4463">MadRiver</a><br /><strong>Subject:</strong> 12289<br /><strong>Posted:</strong> 29 September 2008 at 1:05pm<br /><br />Hello,<br><br>I am trying to enumerate the menus in the CommandBars object.<br><br>If I have a CommandBar of type XTPBarType::xtpBarTypeMenuBar, I can enumerate its controls.<br><br>If a control is type xtpControlPopup, how do I enumerate the menu items/buttons on that popup?<br><br>Some incomplete code:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ICommandBar * pBar = pBar = g_spCommandBars-&gt;GetItem(ii);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pBar-&gt;GetType() == XTPBarType::xtpBarTypeMenuBar) {<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ICommandBarControl * pControl = 0;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControls = pBar-&gt;GetControls();&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int cnt = pControls-&gt;GetCount();<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; for (int ii = 1; ii &lt;= cnt; ++ii) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pControl&nbsp; = pControls-&gt;GetItem(ii);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if (pControl-&gt;GetType() == xtpControlPopup) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <font color="green">// Now what?&nbsp; pControl-&gt;GetCControls() returns siblings.</font><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br><br>UPDATE:&nbsp; If the control is type xtpControlPopup, get the CommandBar.<br>It will be type xtpBarTypePopup, and you can enumerate its Controls collection.<br><br>]]>
   </description>
   <pubDate>Mon, 29 Sep 2008 13:05:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=12289&amp;PID=41475&amp;title=solved-enumerae-xtpcontrolpopup#41475</guid>
  </item> 
 </channel>
</rss>