<?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 : Managing Menus in Designer Apps</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Managing Menus in Designer Apps]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 10 Apr 2026 15:41:27 +0000</pubDate>
  <lastBuildDate>Wed, 25 Mar 2009 02:20:47 +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=13781</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[Managing Menus in Designer Apps : Hi,  Are you sure you enabled...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13781&amp;PID=47074&amp;title=managing-menus-in-designer-apps#47074</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 13781<br /><strong>Posted:</strong> 25 March 2009 at 2:20am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Are you sure you enabled Actions in Designer ?</DIV>]]>
   </description>
   <pubDate>Wed, 25 Mar 2009 02:20:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13781&amp;PID=47074&amp;title=managing-menus-in-designer-apps#47074</guid>
  </item> 
  <item>
   <title><![CDATA[Managing Menus in Designer Apps :  I have a MDI app that is using...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=13781&amp;PID=47051&amp;title=managing-menus-in-designer-apps#47051</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5087">voripteth</a><br /><strong>Subject:</strong> 13781<br /><strong>Posted:</strong> 24 March 2009 at 2:46pm<br /><br />I have a MDI app that is using Designer to load command bars and menus.&nbsp; I'm trying to get the app to work like a traditional windows app with an abbreviated menu when no documents are open.&nbsp; The DesignerSample has been my guide in creating the resources but unfortunately that example use the same menu when no documents are open.<br><br>ActionsSample looked promising since it can hide/disable menus and toolbars at the same time.&nbsp; The code looks pretty straightforward but it isn't working as I expected.&nbsp; I can't seem to find any documentation on Control Actions so I must be missing something.<br><br>I added code to CMainFrame::LoadFrame in the DesignerSample code:<br>&nbsp;&nbsp;&nbsp; ...<br>&nbsp;&nbsp;&nbsp; LoadCommandBars(lpProfile); <br><br>&nbsp;&nbsp;&nbsp; // new code<br>&nbsp;&nbsp;&nbsp; CXTPCommandBars* pCommandBars = GetCommandBars();<br>&nbsp;&nbsp;&nbsp; CXTPControlActions* pActions = pCommandBars-&gt;GetActions();<br>&nbsp;&nbsp;&nbsp; CXTPControlAction* pAction = pActions-&gt;FindAction(ID_FILE_SAVE);<br>&nbsp;&nbsp;&nbsp; if (pAction)<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pAction-&gt;SetVisible (FALSE);&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // Hide Edit menu<br><br>When this code executes pAction is always NULL.&nbsp; ID_FILE_SAVE is there in the toolbar and menu.&nbsp; Looking into pActions with the debugger I see that m_arrActions has no items in it.&nbsp; What&nbsp; needs to be done to get the Actions array populated?<br><br>If there is a better way to getting the two sets of command bars for document/no document please let me know.<br>Thanks!<br><br>]]>
   </description>
   <pubDate>Tue, 24 Mar 2009 14:46:09 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=13781&amp;PID=47051&amp;title=managing-menus-in-designer-apps#47051</guid>
  </item> 
 </channel>
</rss>