<?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 : CXTPMenuBar and Minimize/Maximize butt&#111;ns</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : CXTPMenuBar and Minimize/Maximize butt&#111;ns]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 15:34:13 +0000</pubDate>
  <lastBuildDate>Thu, 17 Feb 2005 01:01:53 +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=897</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[CXTPMenuBar and Minimize/Maximize butt&#111;ns : In 9.60 RefreshMenu method is...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=897&amp;PID=5175&amp;title=cxtpmenubar-and-minimize-maximize-buttons#5175</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 897<br /><strong>Posted:</strong> 17 February 2005 at 1:01am<br /><br />In 9.60 RefreshMenu method is public.]]>
   </description>
   <pubDate>Thu, 17 Feb 2005 01:01:53 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=897&amp;PID=5175&amp;title=cxtpmenubar-and-minimize-maximize-buttons#5175</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar and Minimize/Maximize butt&#111;ns : I havea similarproblem. When I...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=897&amp;PID=5093&amp;title=cxtpmenubar-and-minimize-maximize-buttons#5093</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=471">vlad</a><br /><strong>Subject:</strong> 897<br /><strong>Posted:</strong> 11 February 2005 at 1:25pm<br /><br /><P>I have&nbsp;a similar&nbsp;problem. When I create MDI child window manually, and maximize it afterwards, MDI menu buttons disappear. I think it's a bug related to CXTPMenuBar not handling the WM_MDIREFRESHMENU message. It can be fixed by adding another "case" statement into the CXTPMenuBar::OnHookMessage function before compiling the toolkit libs and dlls. Here is the code (XTPMenuBar.cpp, line:480):</P><P>case WM_MDIREFRESHMENU:<BR>&nbsp;&nbsp;&nbsp;&nbsp; #ifdef _XTP_DOTNET<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; PostMessage( WM_TIMER, TID_REFRESH, 0 );<BR>&nbsp;&nbsp;&nbsp;&nbsp; #else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RefreshMenu();<BR>&nbsp;&nbsp;&nbsp;&nbsp; #endif<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wParam = 0;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp; return TRUE;</P><span style="font-size:10px"><br /><br />Edited by vlad</span>]]>
   </description>
   <pubDate>Fri, 11 Feb 2005 13:25:11 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=897&amp;PID=5093&amp;title=cxtpmenubar-and-minimize-maximize-buttons#5093</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar and Minimize/Maximize butt&#111;ns :     I figure out how to refresh...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=897&amp;PID=2462&amp;title=cxtpmenubar-and-minimize-maximize-buttons#2462</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=389">yoavo</a><br /><strong>Subject:</strong> 897<br /><strong>Posted:</strong> 12 July 2004 at 8:51am<br /><br /><TABLE id=HB_Mail_C&#111;ntainer height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0 UNABLE="&#111;n"><T><TR height="100%" width="100%" UNABLE="&#111;n"><TD id=HB_Focus_Element vAlign=top width="100%" background="" height=250 UNABLE="off"><P>I figure out how to refresh the SysButtons. There is a method in CXTPMenuBar::RefreshMenu which do the job. Unfortunattely it is not public, so the only way for me is to send a WM_TIMER message which call "RefreshMenu". The identifier of the timer (TID_REFRESH) is define in the .cpp file.</P><P>This is my code:</P><P>pMenuBar-&gt;LoadMenu(iMenu);</P><P>pMenuBar-&gt;PostMessage(WM_TIMER,12223,0);</P><P>Can I do it more elegant ?</P><P>Yoav.</P></TD></TR><TR hb_tag="1" UNABLE="&#111;n"><TD style="FONT-SIZE: 1pt" height=1 UNABLE="&#111;n"><DIV id=hotbar_promo></DIV></TD></TR></T></TABLE>]]>
   </description>
   <pubDate>Mon, 12 Jul 2004 08:51:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=897&amp;PID=2462&amp;title=cxtpmenubar-and-minimize-maximize-buttons#2462</guid>
  </item> 
  <item>
   <title><![CDATA[CXTPMenuBar and Minimize/Maximize butt&#111;ns :     Hi, In my MDI application...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=897&amp;PID=2366&amp;title=cxtpmenubar-and-minimize-maximize-buttons#2366</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=389">yoavo</a><br /><strong>Subject:</strong> 897<br /><strong>Posted:</strong> 29 June 2004 at 6:11am<br /><br /><TABLE id=HB_Mail_C&#111;ntainer height="100%" cellSpacing=0 cellPadding=0 width="100%" border=0 UNABLE="&#111;n"><T><TR height="100%" UNABLE="&#111;n" width="100%"><TD id=HB_Focus_Element vAlign=top width="100%" background="" height=250 UNABLE="off"><P>Hi,</P><P>In my MDI application I create my menu dynamically (not loading from resources). I wrote a method that recieves a CMenu object and attached it to an existing CXTPMenuBar object. In general it work ok, but I have the following problem: If the view is maximized (in this case the CXTPMenuBar is added with the minimize/maximize box buttons), and then I use my replacing menu method, the 3 buttons disappearing, and I get them back only if I float the CXTPMenuBar and dock it again.</P><P>This is my code for replacing the menu:</P><P>void CMainFrame::CreateXTPMenu(CMenu* iMenu)<BR>{<BR>&nbsp;CXTPCommandBars* pCommandBar;<BR>&nbsp;CXTPMenuBar*&nbsp;&nbsp; pMenuBar;<BR>&nbsp;pCommandBar = GetCommandBars();<BR>&nbsp;pMenuBar = pCommandBar-&gt;GetMenuBar();<BR>&nbsp;pMenuBar-&gt;LoadMenu(iMenu);<BR>}</P><P>I tried to add at the end:</P><P>&nbsp;RecalcLayout(FALSE);<BR>&nbsp;GetCommandBars()-&gt;RedrawCommandBars();<BR>&nbsp;RedrawWindow();<BR></P><P>But it didnt help.</P><P>Yoav.</P><P><BR>&nbsp;</P></TD></TR><TR UNABLE="&#111;n" hb_tag="1"><TD style="FONT-SIZE: 1pt" height=1 UNABLE="&#111;n"><DIV id=hotbar_promo></DIV></TD></TR></T></TABLE>]]>
   </description>
   <pubDate>Tue, 29 Jun 2004 06:11:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=897&amp;PID=2366&amp;title=cxtpmenubar-and-minimize-maximize-buttons#2366</guid>
  </item> 
 </channel>
</rss>