<?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 : Pr&#101;vent menubar from moving.</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Pr&#101;vent menubar from moving.]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Wed, 13 May 2026 15:32:51 +0000</pubDate>
  <lastBuildDate>Tue, 01 Mar 2005 23:55:46 +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=1844</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[Pr&#101;vent menubar from moving. : pMenBar-&amp;gt;EnableDocking(xtpF...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1844&amp;PID=5485&amp;title=prevent-menubar-from-moving#5485</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 1844<br /><strong>Posted:</strong> 01 March 2005 at 11:55pm<br /><br /><P>pMenBar-&gt;EnableDocking(xtpFlagStretched);</P><P>PToolBar1-&gt;EnableDocking(xtpFlagHideWrap);</P><P>...</P><P>&nbsp;</P><P>seems it will be easy ;)</P><span style="font-size:10px"><br /><br />Edited by oleg</span>]]>
   </description>
   <pubDate>Tue, 01 Mar 2005 23:55:46 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1844&amp;PID=5485&amp;title=prevent-menubar-from-moving#5485</guid>
  </item> 
  <item>
   <title><![CDATA[Pr&#101;vent menubar from moving. : I figured out how to do it, so...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1844&amp;PID=5460&amp;title=prevent-menubar-from-moving#5460</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=945">larryp</a><br /><strong>Subject:</strong> 1844<br /><strong>Posted:</strong> 01 March 2005 at 7:34am<br /><br />I figured out how to do it, so I will post the answer for someone who may need it in the future.<br><br>1) Create a class derived from CXTPMenuBar <br><br>class CLockMenuBar: public CXTPMenuBar<br>{<br>public:<br>&nbsp;&nbsp;&nbsp; CLockMenuBar();<br>&nbsp;&nbsp;&nbsp; DECLARE_MESSAGE_MAP()<br>&nbsp;&nbsp;&nbsp; DECLARE_XTP_COMMANDBAR(CLockMenuBar)<br>&nbsp;&nbsp;&nbsp; afx_msg void OnLButtonDown(UINT nFlags, CPoint point);<br>&nbsp;&nbsp;&nbsp; afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);<br>&nbsp;&nbsp;&nbsp; afx_msg void OnNcLButtonDown(UINT nHitTest, CPoint point);<br>&nbsp;&nbsp;&nbsp; afx_msg void OnRButtonDown(UINT nFlags, CPoint point);<br>};<br><br>2)&nbsp; GetCommandBars()-&gt;SetMenuBarClass (RUNTIME_CLASS(CLockMenuBar));<br>&nbsp;&nbsp;&nbsp;&nbsp; GetCommandBars()-&gt;SetMenu( _T(strCaption), IDR_MAINFRAME);<br><br>3) Implement the class methods as defined above to process the eventsaccording to a flag which is set when toolbars need to be locked.<br><br>Larry<br><br>]]>
   </description>
   <pubDate>Tue, 01 Mar 2005 07:34:10 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1844&amp;PID=5460&amp;title=prevent-menubar-from-moving#5460</guid>
  </item> 
  <item>
   <title><![CDATA[Pr&#101;vent menubar from moving. : First, I would like to say that...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=1844&amp;PID=5328&amp;title=prevent-menubar-from-moving#5328</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=945">larryp</a><br /><strong>Subject:</strong> 1844<br /><strong>Posted:</strong> 23 February 2005 at 10:24pm<br /><br />First, I would like to say that so far I am impressed with the CodeJock library.&nbsp; Great job.<br><br>Is there an easy way to prevent the toolbar from moving?&nbsp; Myprogram performs recording of data and during recording I need todisable the moving of the menubar and all toolbars.<br><br>I saw a previous post where someone described how to create a classderived from CXTPToolBar and passed as the third parameter toAdd.&nbsp; This allows me to catch the mouse click events to preventmoving the toolbars, but what about the menubar?<br><br>Larry<br><br><br>]]>
   </description>
   <pubDate>Wed, 23 Feb 2005 22:24:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=1844&amp;PID=5328&amp;title=prevent-menubar-from-moving#5328</guid>
  </item> 
 </channel>
</rss>