<?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 : Can&#039;t Enabled Popup Menu. It Is Always Disabled.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Can&#039;t Enabled Popup Menu. It Is Always Disabled.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 07:26:01 +0000</pubDate>
  <lastBuildDate>Fri, 16 Mar 2007 00:17:10 +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=6656</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[Can&#039;t Enabled Popup Menu. It Is Always Disabled. : Hi, Do you have handlers for...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6656&amp;PID=21189&amp;title=cant-enabled-popup-menu-it-is-always-disabled#21189</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6656<br /><strong>Posted:</strong> 16 March 2007 at 12:17am<br /><br />Hi,<DIV>Do you have handlers for these commands?</DIV>]]>
   </description>
   <pubDate>Fri, 16 Mar 2007 00:17:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6656&amp;PID=21189&amp;title=cant-enabled-popup-menu-it-is-always-disabled#21189</guid>
  </item> 
  <item>
   <title><![CDATA[Can&#039;t Enabled Popup Menu. It Is Always Disabled. : Hi all,I am using part of ribbon...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6656&amp;PID=21185&amp;title=cant-enabled-popup-menu-it-is-always-disabled#21185</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2448">cjsnewbie</a><br /><strong>Subject:</strong> 6656<br /><strong>Posted:</strong> 15 March 2007 at 3:25pm<br /><br />Hi all,<br>I am using part of ribbon bar in my project. I'm trying to add one button on the right hand side - similar to&nbsp; help button in&nbsp; ribbon bar&nbsp; SDI sample -&nbsp; and setting it to one menu. <br><br>My problem is that sub menu (in following example it is "TestC") always stays disabled. I tried to enable it manually by calling EnableMenuItem, but it's not working. <br><br>Can somebody help me to find out what's going on? Here is sample code of what I'm doing...<br><br>This is how menu is defined in resource file:<br><table width="99%"><tr><td><pre class="BBcode"><br>IDR_TESTM MENU <br>BEGIN<br>&nbsp;&nbsp;&nbsp; POPUP "Test"<br>&nbsp;&nbsp;&nbsp; BEGIN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MENUITEM "TestA",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID_TEST_A<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MENUITEM "TestB",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID_TEST_B<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; POPUP "TestC"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BEGIN<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MENUITEM "SubTestC_1",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID_SUBTESTC_1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MENUITEM "SubTestC_2",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID_SUBTESTC_2<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MENUITEM "SubTestC_3",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID_SUBTESTC_3<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MENUITEM "SubTestC_4",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID_SUBTESTC_4<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MENUITEM "About Test",&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ID_ABOUT_TEST<br>&nbsp;&nbsp;&nbsp; END<br>END</pre></td></tr></table><br>This is how I'm creating and setting it to menu described above:<br><table width="99%"><tr><td><pre class="BBcode"><br>CXTPCommandBars* pCommandBars = GetCommandBars();<br><br>CXTPRibbonBar* pRibbonBar = (CXTPRibbonBar*)pCommandBars-&gt;Add(_T("MyTestRibbon"), xtpBarTop, RUNTIME_CLASS(CXTPRibbonBar));<br><br>CXTPControlPopup* pTest = (CXTPControlPopup*)pRibbonBar-&gt;GetControls()-&gt;Add(xtpControlPopup, -1);<br>pTest-&gt;SetFlags(xtpFlagRightAlign);<br>CMenu TestM;<br>TestM.LoadMenu(IDR_TESTM);<br>pTest-&gt;SetCommandBar(TestM.GetSubMenu(0));<br>pTest-&gt;SetCaption(_T("Click Here"));</pre></td></tr></table><br><br>So, again, problem is sub menu items under "TestC" are always disabled. <br><br>Sample SDI Ribbon Bar has similar submenu, and that works. So do I need to set any flags or values or something?<br><br>Thanks in advance.<br>]]>
   </description>
   <pubDate>Thu, 15 Mar 2007 15:25:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6656&amp;PID=21185&amp;title=cant-enabled-popup-menu-it-is-always-disabled#21185</guid>
  </item> 
 </channel>
</rss>