<?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  Issue</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Menu  Issue]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 10 Jun 2026 13:45:33 +0000</pubDate>
  <lastBuildDate>Fri, 06 Apr 2007 03:15:13 +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=6810</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  Issue : call    HMENU hMenu = GetMe...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6810&amp;PID=21725&amp;title=menu-issue#21725</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 6810<br /><strong>Posted:</strong> 06 April 2007 at 3:15am<br /><br />call <DIV>&nbsp;</DIV><DIV><P>HMENU hMenu = GetMenu()-&gt;GetSafeHmenu();</P><DIV>pApp-&gt;m_pSplitWindowTempl-&gt;m_hMenuShared = hMenu;<BR>pApp-&gt;m_pBookTempl-&gt;m_hMenuShared = hMenu; </DIV><DIV>&nbsp;</DIV><DIV>before you set menubar.</DIV></DIV>]]>
   </description>
   <pubDate>Fri, 06 Apr 2007 03:15:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6810&amp;PID=21725&amp;title=menu-issue#21725</guid>
  </item> 
  <item>
   <title><![CDATA[Menu  Issue : Hi,  I need to assign Menu Handle...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=6810&amp;PID=21723&amp;title=menu-issue#21723</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2796">Makarand</a><br /><strong>Subject:</strong> 6810<br /><strong>Posted:</strong> 06 April 2007 at 2:29am<br /><br /><DIV>Hi,</DIV><DIV>&nbsp;</DIV><DIV>I need to assign Menu Handle to diffrent shared document template such as Spliter Window, BookView etc...</DIV><DIV>&nbsp;</DIV><DIV>Below code is defind in XYZ.h, for diffrent shared document template </DIV><P>CSharedDocTemplate* m_pSplitWindowTempl;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Split Window<BR>CSharedDocTemplate* m_pBookTempl;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Book view</P><DIV>The below given code is in OnCreate() of MainFrame.cpp, where we are assigning the Menu handle to diffrent shared document template.</DIV><P>int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)<BR>{</P><DIV>CXTPMenuBar*&nbsp; pMenuBar = pCommandBars-&gt;SetMenu(_T("Menu Bar"), IDR_MAINFRAME);</DIV><P>HMENU hMenu = GetMenu()-&gt;GetSafeHmenu();</P><P>&#091;Since CommandBar dose not hold HMENU, We are not getting hMenu&#093;</P><DIV>CXYZApp * pApp = (CXYZApp *)AfxGetApp();&nbsp;</DIV><P>&#091;But we need to assign handle of menu for diffrent shared document template.&#093;</P><P>&nbsp;&nbsp;&nbsp; pApp-&gt;m_pSplitWindowTempl-&gt;m_hMenuShared = hMenu;<BR>&nbsp;&nbsp;&nbsp; pApp-&gt;m_pBookTempl-&gt;m_hMenuShared = hMenu; </P><P>}</P><P>Since we are not getting "hMenu", we are unable to assign it to diffrent shared document template.&nbsp;</P><P>How we can assign handle of menu to diffrent shared document template?</P><DIV>&nbsp;</DIV><DIV>Please help me.</DIV><DIV>&nbsp;</DIV><DIV>Thank You,</DIV><DIV>Makarand,</DIV>]]>
   </description>
   <pubDate>Fri, 06 Apr 2007 02:29:06 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=6810&amp;PID=21723&amp;title=menu-issue#21723</guid>
  </item> 
 </channel>
</rss>