<?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 : Want to create all menus dynamically</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Want to create all menus dynamically]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 21:17:47 +0000</pubDate>
  <lastBuildDate>Fri, 21 Jul 2006 17:05:15 +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=3756</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[Want to create all menus dynamically : Hi, I&amp;#039;d replace it to:  CXTPControl*...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=14304&amp;title=want-to-create-all-menus-dynamically#14304</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3756<br /><strong>Posted:</strong> 21 July 2006 at 5:05pm<br /><br /><DIV>Hi,</DIV><DIV>I'd replace it to:</DIV><DIV>&nbsp;</DIV><DIV>CXTPControl* pControl = CXTPControl::FromUI(pCmdUI);</DIV><DIV>if (pControl)<BR>{</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp; pControl-&gt;SetVisible(FALSE);</DIV><DIV>}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>(SetVisible already have DelayLayout _if state is really changed_)</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 21 Jul 2006 17:05:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=14304&amp;title=want-to-create-all-menus-dynamically#14304</guid>
  </item> 
  <item>
   <title><![CDATA[Want to create all menus dynamically : Thanks Oleg. Its working for me...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=14299&amp;title=want-to-create-all-menus-dynamically#14299</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2111">bambha</a><br /><strong>Subject:</strong> 3756<br /><strong>Posted:</strong> 21 July 2006 at 4:08pm<br /><br />Thanks Oleg. Its working for me now.<DIV>For people here is the code </DIV><DIV><FONT size=2><P>CXTPCommandBar* pToolBar = (CXTPToolBar*)pCmdUI-&gt;m_pOther;</P><P></FONT><FONT color=#0000ff size=2>if</FONT><FONT size=2> (pToolBar)</P><P>{</P><P>CXTPControl* pControl = pToolBar-&gt;GetControls()-&gt;GetAt(pCmdUI-&gt;m_nIndex);</P><P>pControl-&gt;SetVisible(0);</P><P>pToolBar-&gt;DelayLayout();</P><P>}</P></FONT></DIV>]]>
   </description>
   <pubDate>Fri, 21 Jul 2006 16:08:59 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=14299&amp;title=want-to-create-all-menus-dynamically#14299</guid>
  </item> 
  <item>
   <title><![CDATA[Want to create all menus dynamically : Hi, See Notifications sample....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=14294&amp;title=want-to-create-all-menus-dynamically#14294</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3756<br /><strong>Posted:</strong> 21 July 2006 at 2:51pm<br /><br /><P>Hi,</P><DIV>See Notifications sample.</DIV>]]>
   </description>
   <pubDate>Fri, 21 Jul 2006 14:51:08 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=14294&amp;title=want-to-create-all-menus-dynamically#14294</guid>
  </item> 
  <item>
   <title><![CDATA[Want to create all menus dynamically : Thanks Oleg. I am able to change...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=14282&amp;title=want-to-create-all-menus-dynamically#14282</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2111">bambha</a><br /><strong>Subject:</strong> 3756<br /><strong>Posted:</strong> 21 July 2006 at 12:05pm<br /><br />Thanks Oleg. I am able to change the text and disable it. Do you know how to delete?]]>
   </description>
   <pubDate>Fri, 21 Jul 2006 12:05:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=14282&amp;title=want-to-create-all-menus-dynamically#14282</guid>
  </item> 
  <item>
   <title><![CDATA[Want to create all menus dynamically : Hello, Add update handlers. See...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=14249&amp;title=want-to-create-all-menus-dynamically#14249</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3756<br /><strong>Posted:</strong> 20 July 2006 at 8:51am<br /><br /><DIV>Hello,</DIV><DIV>Add update handlers. See how ON_UPDATE_COMMAND_UI work in any sample.</DIV>]]>
   </description>
   <pubDate>Thu, 20 Jul 2006 08:51:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=14249&amp;title=want-to-create-all-menus-dynamically#14249</guid>
  </item> 
  <item>
   <title><![CDATA[Want to create all menus dynamically : How can disable a menu item? I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=14243&amp;title=want-to-create-all-menus-dynamically#14243</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2111">bambha</a><br /><strong>Subject:</strong> 3756<br /><strong>Posted:</strong> 19 July 2006 at 7:38pm<br /><br />How can disable a menu item? I have File-&gt;New, File-&gt;Exit. How can disable Exit if my menu is created using <DIV><FONT size=2>CXTPCommandBars* pCommandBars = GetCommandBars();</DIV><DIV>pCommandBars-&gt;SetMenu(_T("Menu Bar"), IDR_MENU);</DIV></FONT>]]>
   </description>
   <pubDate>Wed, 19 Jul 2006 19:38:50 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=14243&amp;title=want-to-create-all-menus-dynamically#14243</guid>
  </item> 
  <item>
   <title><![CDATA[Want to create all menus dynamically : Oleg You are great. (Its fixed) I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=11429&amp;title=want-to-create-all-menus-dynamically#11429</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1833">deepghosh</a><br /><strong>Subject:</strong> 3756<br /><strong>Posted:</strong> 14 March 2006 at 5:01pm<br /><br /><P>Oleg</P><P>You are great. (Its fixed)</P><P>I think we all appreciate your persistent help.</P><P>Deep</P>]]>
   </description>
   <pubDate>Tue, 14 Mar 2006 17:01:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=11429&amp;title=want-to-create-all-menus-dynamically#11429</guid>
  </item> 
  <item>
   <title><![CDATA[Want to create all menus dynamically : You add pControlPopup with Id...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=11402&amp;title=want-to-create-all-menus-dynamically#11402</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 3756<br /><strong>Posted:</strong> 13 March 2006 at 5:53pm<br /><br /><P>You add pControlPopup with Id = 3 it means that you must use Update Handle to enable/disable it.</P><P>Just use (-1) if you want to enable it.</P>]]>
   </description>
   <pubDate>Mon, 13 Mar 2006 17:53:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=11402&amp;title=want-to-create-all-menus-dynamically#11402</guid>
  </item> 
  <item>
   <title><![CDATA[Want to create all menus dynamically : Also Tried This..Still it is disabled...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=11389&amp;title=want-to-create-all-menus-dynamically#11389</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1833">deepghosh</a><br /><strong>Subject:</strong> 3756<br /><strong>Posted:</strong> 13 March 2006 at 12:42am<br /><br /><P>Also Tried This..Still it is disabled (Enabled Items here)</P><P>void CiListOfPopupMenus::AddMenu(CiMainFrame*pMain, CiPopupMenu* pIPopupMenu,LPCTSTR szTitle)<BR>{<BR>&nbsp;&nbsp;&nbsp; CXTPMenuBar*pMenuBar = pMain-&gt;GetMenuBar();<BR>&nbsp;&nbsp;&nbsp; if (!pMenuBar)<BR>&nbsp;return;<BR>&nbsp;&nbsp;&nbsp; CXTPControls *pList = pMenuBar-&gt;GetControls();<BR>&nbsp;&nbsp;&nbsp; //popup creation<BR>&nbsp;&nbsp;&nbsp; CXTPPopupBar *pBar = (CXTPPopupBar*) CXTPPopupBar::CreatePopupBar (pMain-&gt;GetCommandBars());<BR>&nbsp;&nbsp;&nbsp; CXTPControlPopup * pControlPopup = CXTPControlPopup::CreateControlPopup(xtpControlPopup);<BR>&nbsp;&nbsp;&nbsp; pControlPopup-&gt;SetCommandBar(pBar);<BR>&nbsp;&nbsp;&nbsp; pControlPopup-&gt;SetCaption(szTitle);<BR>&nbsp;&nbsp;&nbsp; pList-&gt;Add(pControlPopup, 3, NULL,pList-&gt;GetCount()-1, TRUE);</P><P>&nbsp;</P><P>&nbsp;&nbsp;&nbsp; CXTPControl* pControl = new CXTPControlButton();<BR>&nbsp;&nbsp;&nbsp; pBar-&gt;GetControls()-&gt;Add(pControl, 99, NULL,-1, TRUE);<BR>&nbsp;&nbsp;&nbsp; pControl-&gt;SetCaption("TEST");<BR>&nbsp;&nbsp;&nbsp; pControl-&gt;SetEnabled(TRUE);<BR>&nbsp;&nbsp;&nbsp; pControlPopup-&gt;SetEnabled(TRUE);<BR>&nbsp;&nbsp;&nbsp; Push(pIPopupMenu);<BR>}</P>]]>
   </description>
   <pubDate>Mon, 13 Mar 2006 00:42:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=11389&amp;title=want-to-create-all-menus-dynamically#11389</guid>
  </item> 
  <item>
   <title><![CDATA[Want to create all menus dynamically : Also I wanted to add this. CXTPPopupBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=11388&amp;title=want-to-create-all-menus-dynamically#11388</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1833">deepghosh</a><br /><strong>Subject:</strong> 3756<br /><strong>Posted:</strong> 12 March 2006 at 10:11pm<br /><br /><P>Also I wanted to add this.</P><P>CXTPPopupBar was created with hWnd 0 , what means creation failed?</P>]]>
   </description>
   <pubDate>Sun, 12 Mar 2006 22:11:01 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=3756&amp;PID=11388&amp;title=want-to-create-all-menus-dynamically#11388</guid>
  </item> 
 </channel>
</rss>