<?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 : Menu Bar Issue.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Menu Bar Issue.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 15 Apr 2026 23:58:36 +0000</pubDate>
  <lastBuildDate>Wed, 28 Mar 2007 09:26:16 +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=6734</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[Menu Bar Issue. : What is the class for below in...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6734&amp;PID=21525&amp;title=menu-bar-issue#21525</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2847">saket</a><br /><strong>Subject:</strong> 6734<br /><strong>Posted:</strong> 28 March 2007 at 9:26am<br /><br />What is the class for below in codejock 10.4.2<DIV>&nbsp;</DIV><DIV>CXTMDIChildWnd / CXTControlBar / </DIV>]]>
   </description>
   <pubDate>Wed, 28 Mar 2007 09:26:16 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6734&amp;PID=21525&amp;title=menu-bar-issue#21525</guid>
  </item> 
  <item>
   <title><![CDATA[Menu Bar Issue. : Hi,  We are having MDI application.   Previously...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6734&amp;PID=21520&amp;title=menu-bar-issue#21520</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2847">saket</a><br /><strong>Subject:</strong> 6734<br /><strong>Posted:</strong> 28 March 2007 at 8:22am<br /><br /><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Hi,</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>We are having MDI application.</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><DIV style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 1pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: text 1pt solid; mso-border-bottom-alt: solid text .75pt"><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT face="Times New Roman" size=3>Previously we were using codejock 4.2. And the <B style="mso-bidi-font-weight: normal">code for creation of menu and getting the HANDLE of Menu </B>is as follows:</FONT></P></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><DIV style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 1pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: text 1pt solid; mso-border-bottom-alt: solid text .75pt"><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">MAINFRAME.CPP<o:p></o:p></FONT></FONT></B></P></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">Header Section:<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">#include ".\Common\XTPImageManager.h"<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">//#include &lt;XTImageManager.h&gt; // This path is relative to 'Xtreme Toolkit\Include' folder<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">//#include &lt;Common.Include/XTAnimationMemDC.h&gt;<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">In <B style="mso-bidi-font-weight: normal">“int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)”<o:p></o:p></B></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">//Create Menu and load it<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>if (!m_wndMenuBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>!m_wndMenuBar.LoadMenuBar(IDR_MAINFRAME))</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>{</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TRACE0("Failed to create menubar\n");</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>return -1;<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>// fail to create</FONT></FONT></P><DIV style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 1pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: text 1pt solid; mso-border-bottom-alt: solid text .75pt"><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT face="Times New Roman" size=3>}</FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT size=3><FONT face="Times New Roman"><B style="mso-bidi-font-weight: normal">//Get the Handle for Menu</B><BR><B style="mso-bidi-font-weight: normal">HMENU hMenu = GetMenu()-&gt;GetSafeHmenu();<o:p></o:p></B></FONT></FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT size=3><FONT face="Times New Roman">In the other class say <B style="mso-bidi-font-weight: normal">XYZCLS.CPP, </B>we need the <B style="mso-bidi-font-weight: normal">CMenu*<o:p></o:p></B></FONT></FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">Void XYZCLS ::xyzFun()<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">{<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT face="Times New Roman" size=3>CMenu* ptrMenu;</FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT face="Times New Roman" size=3>CMainFrame * pFrame = (CMainFrame *)AfxGetMainWnd();</FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT face="Times New Roman" size=3>ptrMenu<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>= pFrame-&gt;GetMenu();</FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><SPAN style="COLOR: red"><FONT size=3><FONT face="Times New Roman">&#091;Able to get ptrMenu&#093;<o:p></o:p></FONT></FONT></SPAN></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT face="Times New Roman" size=3>pSubMenu = pMenu-&gt;GetSubMenu(nPos);<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>//assume nPos = 0</FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">}<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">This was the code for CodeJock 4.2 and that is working fine.<o:p></o:p></FONT></FONT></B></P></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><SPAN style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-: EN-US; mso-fareast-: EN-US; mso-bidi-: AR-SA"><BR style="PAGE-BREAK-BEFORE: always" clear=all></SPAN><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>Here is the sample code for what I want to do using codejock 10.4.2.</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><DIV style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 1pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: text 1pt solid; mso-border-bottom-alt: solid text .75pt"><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">MAINFRAME.CPP<o:p></o:p></FONT></FONT></B></P></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">Header Section:<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">#include ".\Common\XTPImageManager.h"<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">//#include &lt;XTImageManager.h&gt; // This path is relative to 'Xtreme Toolkit\Include' folder<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">//#include &lt;Common.Include/XTAnimationMemDC.h&gt;<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman">In <B style="mso-bidi-font-weight: normal">“int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)”<o:p></o:p></B></FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">//Create Menu and load it<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><B style="mso-bidi-font-weight: normal">/*</B>if (!m_wndMenuBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>!m_wndMenuBar.LoadMenuBar(IDR_MAINFRAME))</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman" size=3>{</FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>TRACE0("Failed to create menubar\n");</FONT></FONT></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>return -1;<SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>// fail to create</FONT></FONT></P><DIV style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 1pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: text 1pt solid; mso-border-bottom-alt: solid text .75pt"><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT face="Times New Roman" size=3>}</FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">*/<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT size=3><FONT face="Times New Roman">-------------------<SPAN style="COLOR: red">Replaced the above code with</SPAN><o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>// Initialize the command bars<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp; </SPAN>if (!InitCommandBars())<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>return -1;<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman"><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN>pCommandBars = GetCommandBars();<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">// Add the menu bar : CALL "SetMenu()" member to create menu bar RETURN CXTPMenuBar* pMenuBar = pCommandBars-&gt;SetMenu(_T("Menu Bar"), IDR_MAINFRAME);<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>//Tried but not working</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">//pMenuBar-&gt;LoadMenuBar(IDR_MAINFRAME);<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT size=3><FONT face="Times New Roman"><B style="mso-bidi-font-weight: normal">//Get the Handle for Menu</B><BR><B style="mso-bidi-font-weight: normal">HMENU hMenu = GetMenu()-&gt;GetSafeHmenu();<o:p></o:p></B></FONT></FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT size=3><FONT face="Times New Roman"><B style="mso-bidi-font-weight: normal"><SPAN style="COLOR: red">&#091;In the</SPAN></B><SPAN style="COLOR: red"> <B style="mso-bidi-font-weight: normal">hMenu, we are not getting handle to menu&#093;, <o:p></o:p></B></SPAN></FONT></FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><BR><FONT size=3><FONT face="Times New Roman">In the other class say <B style="mso-bidi-font-weight: normal">XYZCLS.CPP, </B>we need the <B style="mso-bidi-font-weight: normal">CMenu*<o:p></o:p></B></FONT></FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">Void XYZCLS ::xyzFun()<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">{<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT face="Times New Roman" size=3>CMenu* ptrMenu;</FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT face="Times New Roman" size=3>CMainFrame * pFrame = (CMainFrame *)AfxGetMainWnd();</FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT face="Times New Roman" size=3>ptrMenu<SPAN style="mso-spacerun: yes">&nbsp; </SPAN>= pFrame-&gt;GetMenu();</FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT size=3><FONT face="Times New Roman"><B style="mso-bidi-font-weight: normal"><SPAN style="COLOR: red">&#091;In the</SPAN></B><SPAN style="COLOR: red"> <B style="mso-bidi-font-weight: normal">ptrMenu, we are not getting pointer to menu&#093;, <o:p></o:p></B></SPAN></FONT></FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><SPAN style="COLOR: red"><FONT size=3><FONT face="Times New Roman">Since we are not able to get <B style="mso-bidi-font-weight: normal">pMenu, the below line break the execution, </B><o:p></o:p></FONT></FONT></SPAN></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT face="Times New Roman" size=3>pSubMenu = pMenu-&gt;GetSubMenu(nPos);<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>//assume nPos = 0</FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; TEXT-INDENT: 0.5in; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT size=3><FONT face="Times New Roman"><SPAN style="COLOR: red">The above line is breaking because</SPAN> <SPAN style="COLOR: red">“<B style="mso-bidi-font-weight: normal">pMenu”.</B></SPAN></FONT></FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">}<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">If are ignoring it and trying to open any menu, the application is firing command for the entire menu item. <o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">I had changed the “MainFrame.h”, Given Below<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT size=3><FONT face="Times New Roman">//class CMainFrame : public CMDIFrameWnd<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT size=3><FONT face="Times New Roman">class CMainFrame : public <B style="mso-bidi-font-weight: normal">CXTPMDIFrameWnd</B><o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">For the Child Frame Window:<SPAN style="mso-tab-count: 1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>//No Change<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT size=3><FONT face="Times New Roman">class CChildFrame : public CMDIChildWnd<o:p></o:p></FONT></FONT></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">Since “CXTPMDIChildWnd” <SPAN style="mso-spacerun: yes">&nbsp;</SPAN>is not there for codejock 10.4.2. CChildFrame derivation is as it.<o:p></o:p></FONT></FONT></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT face="Times New Roman" size=3>This is the issue. </FONT><FONT face="Times New Roman" size=3>Please help me out.</FONT></P><FONT face="Times New Roman" size=3><DIV>&nbsp;</DIV><DIV>Thanks in advance.</FONT></DIV><P =Ms&#111;normal style="BORDER-RIGHT: medium n&#111;ne; PADDING-RIGHT: 0in; BORDER-TOP: medium n&#111;ne; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; MARGIN: 0in 0in 0pt; BORDER-LEFT: medium n&#111;ne; PADDING-TOP: 0in; BORDER-BOTTOM: medium n&#111;ne; mso-border-bottom-alt: solid text .75pt; mso-padding-alt: 0in 0in 1.0pt 0in"><FONT size=3><FONT face="Times New Roman">Saket Kumar.<o:p></o:p></FONT></FONT></P></DIV><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></P>]]>
   </description>
   <pubDate>Wed, 28 Mar 2007 08:22:17 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6734&amp;PID=21520&amp;title=menu-bar-issue#21520</guid>
  </item> 
  <item>
   <title><![CDATA[Menu Bar Issue. : Hi,  I don&amp;#039;t know what...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6734&amp;PID=21505&amp;title=menu-bar-issue#21505</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6734<br /><strong>Posted:</strong> 27 March 2007 at 10:53am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>I don't know what you do to delete it, so I don't know how to prevent.</DIV><DIV>&nbsp;</DIV><DIV>Send whole project to <a href="mailto:support@codejock.com" target="_blank">support@codejock.com</A> and I will suggest you what to change.</DIV>]]>
   </description>
   <pubDate>Tue, 27 Mar 2007 10:53:23 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6734&amp;PID=21505&amp;title=menu-bar-issue#21505</guid>
  </item> 
  <item>
   <title><![CDATA[Menu Bar Issue. : Hi , What we need to do for this,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6734&amp;PID=21500&amp;title=menu-bar-issue#21500</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2847">saket</a><br /><strong>Subject:</strong> 6734<br /><strong>Posted:</strong> 27 March 2007 at 9:16am<br /><br /><P>Hi ,</P><P>What we need to do for this, So that command do not get deleted.</P><P><BR>Thanks,<BR>Saket Kumar.</P>]]>
   </description>
   <pubDate>Tue, 27 Mar 2007 09:16:29 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6734&amp;PID=21500&amp;title=menu-bar-issue#21500</guid>
  </item> 
  <item>
   <title><![CDATA[Menu Bar Issue. : Hi May be you have some update...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6734&amp;PID=21463&amp;title=menu-bar-issue#21463</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6734<br /><strong>Posted:</strong> 26 March 2007 at 11:59am<br /><br /><P>Hi</P><DIV>May be you have some update handler that can delete these commands...</DIV>]]>
   </description>
   <pubDate>Mon, 26 Mar 2007 11:59:42 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6734&amp;PID=21463&amp;title=menu-bar-issue#21463</guid>
  </item> 
  <item>
   <title><![CDATA[Menu Bar Issue. :  Hi,   I am facing the problem...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6734&amp;PID=21460&amp;title=menu-bar-issue#21460</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2796">Makarand</a><br /><strong>Subject:</strong> 6734<br /><strong>Posted:</strong> 26 March 2007 at 11:06am<br /><br /><FONT face="Bookman Old Style" color=#000080>&nbsp;</FONT><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">Hi, <?:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">&nbsp;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">I am facing the problem with the menu.<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">I am trying to&nbsp;replace the codejock lib 4.2 to 10.4.2.&nbsp;I have created menu by using following code.<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">&nbsp;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">&nbsp;// Initialize the command bars<BR>&nbsp;&nbsp;&nbsp; if (!InitCommandBars())<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">&nbsp;&nbsp;&nbsp; // Get a pointer to the command bars object.<BR>&nbsp;&nbsp;&nbsp; pCommandBars = GetCommandBars();<BR>&nbsp;&nbsp;&nbsp; if(pCommandBars == NULL)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRACE0("Failed to create command bars object.\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<BR>&nbsp;&nbsp;&nbsp; }<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">&nbsp;&nbsp;&nbsp; // Add the menu bar<BR>&nbsp;&nbsp;&nbsp; m_wndMenuBar = (CXTPMenuBar*)pCommandBars-&gt;SetMenu(<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; _T("Menu Bar"), </SPAN><?:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /><st1:stockticker><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">IDR</SPAN></st1:stockticker><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">_MAINFRAME);<BR>&nbsp;&nbsp;&nbsp; if(m_wndMenuBar == NULL)<BR>&nbsp;&nbsp;&nbsp; {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TRACE0("Failed to create menu bar.\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<BR>&nbsp;&nbsp;&nbsp; }<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">&nbsp;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">Now the problem with the command routing of menu bar, When I select the "File" menu from the menu bar, all the menus from the "File" like "New", "Open"... get fired. <o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN"><o:p>&nbsp;</o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">I am confused for this misbehavior, If I remove the code and replace the old code as follow<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">&nbsp;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">&nbsp;if (!m_wndMenuBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP<BR>&nbsp;&nbsp;| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) ||<BR>&nbsp;&nbsp;!m_wndMenuBar.LoadMenuBar(</SPAN><st1:stockticker><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">IDR</SPAN></st1:stockticker><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">_MAINFRAME))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create menubar\n");<BR>&nbsp;&nbsp;return -1;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // fail to create<BR>&nbsp;}<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">&nbsp;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">It is working fine.<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">&nbsp;<o:p></o:p></SPAN></P><P =Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN lang=EN style="FONT-SIZE: 9pt; COLOR: black; FONT-FAMILY: Verdana; mso-ansi-: EN">Please help for the Issue<o:p></o:p></SPAN></P><DIV>&nbsp;</DIV><DIV>Thank You,</DIV>]]>
   </description>
   <pubDate>Mon, 26 Mar 2007 11:06:38 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6734&amp;PID=21460&amp;title=menu-bar-issue#21460</guid>
  </item> 
 </channel>
</rss>