<?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 : How to handle Dynamic created menus Event Handling</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to handle Dynamic created menus Event Handling]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 08:25:00 +0000</pubDate>
  <lastBuildDate>Wed, 09 Jul 2008 04:25:48 +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=11335</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[How to handle Dynamic created menus Event Handling : hi  yes i guess this is the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=38026&amp;title=how-to-handle-dynamic-created-menus-event-handling#38026</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4284">Pariksh*t</a><br /><strong>Subject:</strong> 11335<br /><strong>Posted:</strong> 09 July 2008 at 4:25am<br /><br />hi<DIV>&nbsp;</DIV><DIV>yes i guess this is the last thing that i can do in this situation</DIV><DIV>but wait.....</DIV><DIV>&nbsp;</DIV><DIV>in sdi an dmdi applications there is one variable</DIV><DIV>CFrameWnd::m_bAutoMenuEnable , using this variable with EnableMenuItem() can solve the problem</DIV><DIV>&nbsp;</DIV><DIV>but my app is dialog based</DIV><DIV>&nbsp;</DIV><DIV>thanx for help</DIV><DIV><img src="http://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV>]]>
   </description>
   <pubDate>Wed, 09 Jul 2008 04:25:48 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=38026&amp;title=how-to-handle-dynamic-created-menus-event-handling#38026</guid>
  </item> 
  <item>
   <title><![CDATA[How to handle Dynamic created menus Event Handling : Then make it 10000 rather than...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=38020&amp;title=how-to-handle-dynamic-created-menus-event-handling#38020</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 11335<br /><strong>Posted:</strong> 09 July 2008 at 2:52am<br /><br />Then make it 10000 rather than 1000. How big of a menu do you think your users can deal with? Are you going to cover the entire screen with toolbar buttons?<br><br>If you need that many dynamically assigned IDs, I think you have a bigger problem than a fixed maximum.<br><br>By using an array indexed by ID as I mentioned, you can reuse IDs of removed items.<br><br>]]>
   </description>
   <pubDate>Wed, 09 Jul 2008 02:52:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=38020&amp;title=how-to-handle-dynamic-created-menus-event-handling#38020</guid>
  </item> 
  <item>
   <title><![CDATA[How to handle Dynamic created menus Event Handling : hi  here in ur answer u r asuming...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=38016&amp;title=how-to-handle-dynamic-created-menus-event-handling#38016</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4284">Pariksh*t</a><br /><strong>Subject:</strong> 11335<br /><strong>Posted:</strong> 09 July 2008 at 2:03am<br /><br />hi<DIV>&nbsp;</DIV><DIV>here in ur answer u r asuming that there will be maximum 999 ids which will get generate......what if there are more than 999 ids which generates at run time ?</DIV>]]>
   </description>
   <pubDate>Wed, 09 Jul 2008 02:03:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=38016&amp;title=how-to-handle-dynamic-created-menus-event-handling#38016</guid>
  </item> 
  <item>
   <title><![CDATA[How to handle Dynamic created menus Event Handling : Just define an arbitrary maximum;...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=38015&amp;title=how-to-handle-dynamic-created-menus-event-handling#38015</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 11335<br /><strong>Posted:</strong> 09 July 2008 at 1:53am<br /><br />Just define an arbitrary maximum; surely 1000 should be more than enough; for example:<br><br><font face="Courier New, Courier, mono" size="2">#define IDC_DYNAMIC_FIRST 20000<br>#define IDC_DYNAMIC_LAST 20999</font><br><br>If you need different ranges for different things (I do), just use separate ranges for each.<br><br>If you need to assign IDs arbitrarily to different functions, use an array of structures indexed by <b><font face="Courier New, Courier, mono">&#091;id - IDC_DYNAMIC_FIRST&#093;</font></b> to locate a structure that defines what that particular ID does (for example, a call to a named macro).<br><br>]]>
   </description>
   <pubDate>Wed, 09 Jul 2008 01:53:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=38015&amp;title=how-to-handle-dynamic-created-menus-event-handling#38015</guid>
  </item> 
  <item>
   <title><![CDATA[How to handle Dynamic created menus Event Handling : thanx   but for RANGE you should...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=38014&amp;title=how-to-handle-dynamic-created-menus-event-handling#38014</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4284">Pariksh*t</a><br /><strong>Subject:</strong> 11335<br /><strong>Posted:</strong> 08 July 2008 at 10:54pm<br /><br />thanx <img src="https://forum.codejock.com/smileys/smiley32.gif" border="0"><DIV>&nbsp;</DIV><DIV>but for RANGE you should know the 1st and last id</DIV><DIV>in my case i know&nbsp; 1st id but not the last one as it generates at run time</DIV><DIV>so the problem is still not resolved.................</DIV><DIV><img src="https://forum.codejock.com/smileys/smiley18.gif" border="0"></DIV><DIV>&nbsp;</DIV><DIV>do reply.....<img src="https://forum.codejock.com/smileys/smiley1.gif" border="0"></DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 08 Jul 2008 22:54:28 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=38014&amp;title=how-to-handle-dynamic-created-menus-event-handling#38014</guid>
  </item> 
  <item>
   <title><![CDATA[How to handle Dynamic created menus Event Handling : All you should need are:ON_UPD...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=37961&amp;title=how-to-handle-dynamic-created-menus-event-handling#37961</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3717">Smucker</a><br /><strong>Subject:</strong> 11335<br /><strong>Posted:</strong> 08 July 2008 at 8:15am<br /><br />All you should need are:<br><br>ON_UPDATE_COMMAND_UI_RANGE<br>ON_COMMAND_RANGE<br><br>]]>
   </description>
   <pubDate>Tue, 08 Jul 2008 08:15:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=37961&amp;title=how-to-handle-dynamic-created-menus-event-handling#37961</guid>
  </item> 
  <item>
   <title><![CDATA[How to handle Dynamic created menus Event Handling : Dear oleg thanx for reply But...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=37956&amp;title=how-to-handle-dynamic-created-menus-event-handling#37956</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4284">Pariksh*t</a><br /><strong>Subject:</strong> 11335<br /><strong>Posted:</strong> 08 July 2008 at 7:06am<br /><br /><P>Dear oleg</P><P>thanx for reply</P><P>But i didnt get you. There is no issue with your commandbars or menus the question was about how to do event handling of dynamically generated menus in Xtreme toolkit.</P><P>i managed to do the same in mfc in a dialog based app.</P><P>But problem with Xtreme Toolkit is that it compells me to write OnUpdate#() and On#() for each &amp; every ID of menu which generates at run time</P><DIV>and the no of IDs is not fixed ............</DIV><DIV>do reply</DIV>]]>
   </description>
   <pubDate>Tue, 08 Jul 2008 07:06:41 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=37956&amp;title=how-to-handle-dynamic-created-menus-event-handling#37956</guid>
  </item> 
  <item>
   <title><![CDATA[How to handle Dynamic created menus Event Handling : Hi,  How it worked before with...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=37935&amp;title=how-to-handle-dynamic-created-menus-event-handling#37935</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11335<br /><strong>Posted:</strong> 08 July 2008 at 6:25am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>How it worked before with simple CMenu ? I sure it will work same with our CommandBars.</DIV>]]>
   </description>
   <pubDate>Tue, 08 Jul 2008 06:25:40 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=37935&amp;title=how-to-handle-dynamic-created-menus-event-handling#37935</guid>
  </item> 
  <item>
   <title><![CDATA[How to handle Dynamic created menus Event Handling : hi this is pariksh*t. i am implementing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=37920&amp;title=how-to-handle-dynamic-created-menus-event-handling#37920</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4284">Pariksh*t</a><br /><strong>Subject:</strong> 11335<br /><strong>Posted:</strong> 08 July 2008 at 12:44am<br /><br /><P>hi</P><P>this is pariksh*t.</P><P>i am implementing dynamic menus in a ribbonbar.</P><P>i amthrough with that.</P><P>i am handling all the events of this menu whose ids gets dynamically created in function----</P><FONT size=2><P></FONT><FONT size=1>BOOL OnCmdMsg(UINT nID, <FONT color=#0000ff>int</FONT> nCode, <FONT color=#0000ff>void</FONT>* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);</FONT></P><DIV><FONT size=1></FONT></DIV><P><FONT size=1>But the problem is that </FONT></P><DIV><FONT size=1></FONT></DIV><DIV><FONT size=1>the menu items are disabled as i have not done</FONT></DIV><FONT color=#0000ff><P><FONT size=1>void</FONT></FONT><FONT size=1> OnUpdate11111(CCmdUI* pCmdUI);</FONT></P><P><FONT size=1><FONT color=#0000ff>void</FONT> On11111(); </FONT></P><DIV><FONT size=1></FONT></DIV><DIV><FONT size=1>11111 is the id of a menu item. This id is dynamically generated....if i dont write these 2 functions my menu items gets disabled</FONT></DIV><DIV><FONT size=1>Now the issue is at the compile time i have no idea about no of menu items which will generate at run time</FONT></DIV><DIV><FONT size=1>so i cant write </FONT></DIV><DIV><FONT size=1>void OnUpdate#(CCmdUI* pCmdUI);</FONT></DIV><DIV><FONT size=1>void On#();</FONT></DIV><DIV><FONT size=1>at compile time</FONT></DIV><DIV><FONT size=1>what should i do?</FONT></DIV><DIV><FONT size=1></FONT>&nbsp;</DIV><DIV><FONT size=1>Reply asap.</FONT></DIV><DIV><FONT size=1></FONT>&nbsp;</DIV><DIV><FONT size=1>Regards,</FONT></DIV><DIV><FONT size=1>Pariksh*t.</FONT></DIV>]]>
   </description>
   <pubDate>Tue, 08 Jul 2008 00:44:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11335&amp;PID=37920&amp;title=how-to-handle-dynamic-created-menus-event-handling#37920</guid>
  </item> 
 </channel>
</rss>