<?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 : OnMenuChar not getting called</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : OnMenuChar not getting called]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 15:04:20 +0000</pubDate>
  <lastBuildDate>Fri, 03 Feb 2012 12:01:43 +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=19462</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[OnMenuChar not getting called : I submitted this problem to support...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=19462&amp;PID=67546&amp;title=onmenuchar-not-getting-called#67546</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=7007">tserface</a><br /><strong>Subject:</strong> 19462<br /><strong>Posted:</strong> 03 February 2012 at 12:01pm<br /><br /><div style="margin-left: 1px; margin-top: 1px; margin-right: 1px; margin-bottom: 1px; line-height: 1.4; border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-: initial; -: n&#111;ne; ">I submitted this problem to support a few months ago and haven't heard anything back so I figured I'd ask here if anyone has seen this problem before I go in and fix it myself. &nbsp;I use this call to get accelerator keys from child dialogs that are embedded on a main dialog (when the child has focus). &nbsp;It works fine when skinning is off, but never gets called when skinning is on. &nbsp;Here's the text of my support message:<div><br></div><div><p ="Mso">SUPPORT REQUEST:<o:p></o:p></p><p ="Mso">If I load one of the skins from a .cjsytles file then the message WM_MENUCHAR is no longer sent to my windows.&nbsp; If I just comment out loading the skin then the message starts coming again.&nbsp; I couldn''t find anything in your source where OnMenuChar is being handled, but there is something going on with WM_MENUCHAR around line 2632 in XTPSkinObjectMenu.cpp.&nbsp; This message is supposed to come whenever anyone presses Alt+another key on a dialog OR if they press a key that is not on a current menu.</p><p ="Mso"><o:p></o:p></p><p ="Mso">There are some changes in that file for the latest version, but nothing that looks like it has anything to do with this problem so I don''t want to go to the trouble of updating unless I know this problem is fixed.&nbsp; I couldn''t find anything about it in the forums.</p><p ="Mso"><o:p></o:p></p><p ="Mso">This link describes the expected behavior of this message:</p><p ="Mso"><o:p></o:p></p><p ="Mso"><a href="http://msdn.microsoft.com/en-us/library/cd5xeb57%28v=vs.80%29.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/cd5xeb57(v=vs.80).aspx</a></p><p ="Mso"><o:p></o:p></p><p ="Mso">It''s easy to reproduce this with your code using the SDI Skin program:</p><p ="Mso"><o:p></o:p></p><p ="Mso">1. Add an OnMenuChar() handler to mainframe.&nbsp; I just used the wizard from ClassView.</p><p ="Mso"><o:p></o:p></p><p ="Mso">2. Set a break point in the added handler routine.&nbsp;&nbsp;It just calls the base class by default.<o:p></o:p></p><p ="Mso">3. Click on the view on the right of the splitter.<o:p></o:p></p><p ="Mso">4. Try press Alt+M (something that is not defined) and notice it does nothing.<o:p></o:p></p><p ="Mso">5. Quit the program and add a return at the beginning of LoadSkin() in mainframe which just causes it to not load the skin.<o:p></o:p></p><p ="Mso">6. Try again and notice that now your break point is hit.<o:p></o:p></p><p ="Mso">Thanks,</p><p ="Mso"><o:p></o:p></p><p ="Mso">Tom&nbsp;</p></div></div>]]>
   </description>
   <pubDate>Fri, 03 Feb 2012 12:01:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=19462&amp;PID=67546&amp;title=onmenuchar-not-getting-called#67546</guid>
  </item> 
 </channel>
</rss>