<?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 : MenuItem Custom Draw not implemented ?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : MenuItem Custom Draw not implemented ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 25 May 2026 15:34:39 +0000</pubDate>
  <lastBuildDate>Wed, 08 Aug 2007 05:16:26 +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=7728</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[MenuItem Custom Draw not implemented ? : Hi Oleg,  Thanks a lot, works...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24952&amp;title=menuitem-custom-draw-not-implemented#24952</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2440">dbrulhart</a><br /><strong>Subject:</strong> 7728<br /><strong>Posted:</strong> 08 August 2007 at 5:16am<br /><br />Hi Oleg,<DIV>&nbsp;</DIV><DIV>Thanks a lot, works fine and much more elegant.</DIV><DIV>&nbsp;</DIV><DIV>Cheers,</DIV><DIV>&nbsp;</DIV><DIV>Dominique</DIV>]]>
   </description>
   <pubDate>Wed, 08 Aug 2007 05:16:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24952&amp;title=menuitem-custom-draw-not-implemented#24952</guid>
  </item> 
  <item>
   <title><![CDATA[MenuItem Custom Draw not implemented ? : Hello, Its not very good solution....]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24947&amp;title=menuitem-custom-draw-not-implemented#24947</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7728<br /><strong>Posted:</strong> 08 August 2007 at 2:15am<br /><br /><DIV>Hello,</DIV><DIV>Its not very good solution. </DIV><DIV>Check Samples\CommandBars\DynamicPopups samples.</DIV>]]>
   </description>
   <pubDate>Wed, 08 Aug 2007 02:15:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24947&amp;title=menuitem-custom-draw-not-implemented#24947</guid>
  </item> 
  <item>
   <title><![CDATA[MenuItem Custom Draw not implemented ? : Hi Oleg,  As per the menus issues,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24939&amp;title=menuitem-custom-draw-not-implemented#24939</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2440">dbrulhart</a><br /><strong>Subject:</strong> 7728<br /><strong>Posted:</strong> 07 August 2007 at 10:03am<br /><br />Hi Oleg,<DIV>&nbsp;</DIV><DIV>As per the menus issues, all seems fine for now.</DIV><DIV>&nbsp;</DIV><DIV>However, I'm wondering if there would something better to do than what I'm currently doing: </DIV><DIV>&nbsp;</DIV><DIV>We have to modify the Edit menu after each operation in the software to update the History submenu. We then keep updating the HMENU as before and call XTPMenuBar-&gt;LoadMenu() everytime.</DIV><DIV>&nbsp;</DIV><DIV>Is this consuming a lot of GDI resources ?</DIV><DIV>&nbsp;</DIV><DIV>Any better solution </DIV><DIV>&nbsp;</DIV><DIV>Thanks again</DIV><DIV>&nbsp;</DIV><DIV>Dominique</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Tue, 07 Aug 2007 10:03:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24939&amp;title=menuitem-custom-draw-not-implemented#24939</guid>
  </item> 
  <item>
   <title><![CDATA[MenuItem Custom Draw not implemented ? : Hello,  Sorry for delay. Seems...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24927&amp;title=menuitem-custom-draw-not-implemented#24927</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7728<br /><strong>Posted:</strong> 07 August 2007 at 12:36am<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>Sorry for delay. Seems you resolved almost all your questions. :)</DIV><DIV>Right, for MDI menulist just add new menu item with id = 35000. Its XTP thing which allows add menu items to any submenu.</DIV>]]>
   </description>
   <pubDate>Tue, 07 Aug 2007 00:36:33 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24927&amp;title=menuitem-custom-draw-not-implemented#24927</guid>
  </item> 
  <item>
   <title><![CDATA[MenuItem Custom Draw not implemented ? : Hi again, Finally found how to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24913&amp;title=menuitem-custom-draw-not-implemented#24913</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2440">dbrulhart</a><br /><strong>Subject:</strong> 7728<br /><strong>Posted:</strong> 06 August 2007 at 11:16am<br /><br /><P>Hi again,</P><P>Finally found how to disable the menu activation through the Alt key:</P><FONT color=#808000 size=2><P>pCommandBars-&gt;GetCommandBarsOptions()-&gt;keyboardCuesUse = xtpKeyboardCuesUseNone</P><DIV></DIV><DIV></DIV><FONT color=#000000>Sorry to all I bothered wih this thread.<DIV></DIV><DIV></DIV><DIV>&nbsp;</DIV><DIV>Thanks again</DIV><DIV>&nbsp;</DIV><DIV>Dominique</DIV></FONT></FONT>]]>
   </description>
   <pubDate>Mon, 06 Aug 2007 11:16:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24913&amp;title=menuitem-custom-draw-not-implemented#24913</guid>
  </item> 
  <item>
   <title><![CDATA[MenuItem Custom Draw not implemented ? : Hi again,   Managed to fix the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24909&amp;title=menuitem-custom-draw-not-implemented#24909</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2440">dbrulhart</a><br /><strong>Subject:</strong> 7728<br /><strong>Posted:</strong> 06 August 2007 at 9:38am<br /><br />Hi again, <DIV>&nbsp;</DIV><DIV>Managed to fix the Shortcuts issue: <FONT size=2>pCommandBars-&gt;GetCommandBarsOptions()-&gt;bAutoUpdateShortcuts = FALSE</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>and the MDI Window menu issue: Had to add a Window = 35000 menu item in the .rc. Was not necessary previously. Is this a MCF or XTP issue ?</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Could also avoid deriving the CXPTControl for custom menu item drawing. Just derived the <FONT size=2>CXTPOfficeTheme class and overide <FONT size=2>DrawControlPopupParent(). Works fine now.</FONT></FONT></FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Still fighting with Alt key opening the menus. Any way to disable this welcome.</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Thanks again</FONT></DIV><DIV><FONT size=2></FONT>&nbsp;</DIV><DIV><FONT size=2>Dominique</FONT></DIV>]]>
   </description>
   <pubDate>Mon, 06 Aug 2007 09:38:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24909&amp;title=menuitem-custom-draw-not-implemented#24909</guid>
  </item> 
  <item>
   <title><![CDATA[MenuItem Custom Draw not implemented ? : Hi again, Just noticed also that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24905&amp;title=menuitem-custom-draw-not-implemented#24905</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2440">dbrulhart</a><br /><strong>Subject:</strong> 7728<br /><strong>Posted:</strong> 06 August 2007 at 4:36am<br /><br /><P>Hi again,</P><P>Just noticed also that the I've lost the MDI Window menu listing open documents.</P><P>Any attempts to overidde the MFC OnUpdateFrameMenu() and tweak in to get the Widow menu back failed.</P><P>Is there a way in XTPMenuBar to handle this ?</P><P>Thanks again</P><P>Dominique</P>]]>
   </description>
   <pubDate>Mon, 06 Aug 2007 04:36:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24905&amp;title=menuitem-custom-draw-not-implemented#24905</guid>
  </item> 
  <item>
   <title><![CDATA[MenuItem Custom Draw not implemented ? : Hi again, Just noticed that the...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24903&amp;title=menuitem-custom-draw-not-implemented#24903</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2440">dbrulhart</a><br /><strong>Subject:</strong> 7728<br /><strong>Posted:</strong> 06 August 2007 at 3:52am<br /><br /><P>Hi again,</P><P>Just noticed that the XTPMenu Bar seems hooking the Alt key to open menu automatically.</P><P>We had disabled this previously as we have implemented our own Accelerator mechanism and process any key command in CWinApp::PretranslateMessage(), but it seems XTP hooks it before us.</P><DIV>Is there anyway to disable this ?</DIV><DIV>&nbsp;</DIV><DIV>I also noticed that if we set menu item text to: New File\tCtrl + N, then the Ctrl + N is not displayed. Any reason for this ? Or any way to re-enable this ?</DIV><DIV>&nbsp;</DIV><DIV>Thanks again</DIV><DIV>&nbsp;</DIV><DIV>Dominique</DIV>]]>
   </description>
   <pubDate>Mon, 06 Aug 2007 03:52:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24903&amp;title=menuitem-custom-draw-not-implemented#24903</guid>
  </item> 
  <item>
   <title><![CDATA[MenuItem Custom Draw not implemented ? : Hi Oleg,  Thanks for the quick...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24902&amp;title=menuitem-custom-draw-not-implemented#24902</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2440">dbrulhart</a><br /><strong>Subject:</strong> 7728<br /><strong>Posted:</strong> 06 August 2007 at 3:14am<br /><br />Hi Oleg,<DIV>&nbsp;</DIV><DIV>Thanks for the quick reply.</DIV><DIV>&nbsp;</DIV><DIV>This could work, and that's what I use in the other (smaller) app we've skinned.</DIV><DIV>&nbsp;</DIV><DIV>The problem with the app I'm working now on, is that it is quite large and there's a lot of menu items... and all of them have to be customized (historical issue).</DIV><DIV>&nbsp;</DIV><DIV>Is there any way I can avoid creating a CXTPControl for every item ?</DIV><DIV>&nbsp;</DIV><DIV>A simple callback would be much more convenient (like OnDrawItem())... specially as the menu is often reconfigured and completely recreated.</DIV><DIV>&nbsp;</DIV><DIV>Thanks a lot in advance</DIV><DIV>&nbsp;</DIV><DIV>Dominique</DIV>]]>
   </description>
   <pubDate>Mon, 06 Aug 2007 03:14:49 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24902&amp;title=menuitem-custom-draw-not-implemented#24902</guid>
  </item> 
  <item>
   <title><![CDATA[MenuItem Custom Draw not implemented ? : uploads/20070804_021830_Logo.zip-...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24870&amp;title=menuitem-custom-draw-not-implemented#24870</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 7728<br /><strong>Posted:</strong> 04 August 2007 at 2:18am<br /><br /><a href="https://forum.codejock.com/uploads/20070804_021830_Logo.zip" target="_blank">uploads/20070804_021830_Logo.zip</A>&nbsp;- Small sample.]]>
   </description>
   <pubDate>Sat, 04 Aug 2007 02:18:44 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7728&amp;PID=24870&amp;title=menuitem-custom-draw-not-implemented#24870</guid>
  </item> 
 </channel>
</rss>