<?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 : How to make a CXTPToolBar non-movable?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : How to make a CXTPToolBar non-movable?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 21 Apr 2026 04:56:19 +0000</pubDate>
  <lastBuildDate>Mon, 21 Jun 2010 09:24:56 +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=16848</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[How to make a CXTPToolBar non-movable? : EnableDocking(0) is what I tried...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16848&amp;PID=59051&amp;title=how-to-make-a-cxtptoolbar-nonmovable#59051</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6081">wssdev</a><br /><strong>Subject:</strong> 16848<br /><strong>Posted:</strong> 21 June 2010 at 9:24am<br /><br /><br>EnableDocking(0) is what I tried after writing this message, and it did do the trick. <br><br>However, I prefer your approach using setFlags(). It feels somewhat safer because it removes only relevant flags.<br><br>Also, I'm using an older XTP version (10.30) that does not have SetShowGripper() so I ended up calling <span style="color: rgb(1, 0, 1);"><br><br>pToolBar</span>-&gt;<span style="color: rgb(1, 0, 1);">ModifyBarStyle</span>(<span style="color: rgb(1, 0, 1);">CBRS_GRIPPER</span>,&nbsp;0);<br><br><br>Thanks for your help!<br><br><div ="" title="Page Scroll Marker" id="PageScrollMarkerM&#111;nJun212010151925GMT0200RomanceDaylightTime"><div style="top: 0px;">&#9660;</div><div style="bottom: 0px;">&#9650;</div></div>]]>
   </description>
   <pubDate>Mon, 21 Jun 2010 09:24:56 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16848&amp;PID=59051&amp;title=how-to-make-a-cxtptoolbar-nonmovable#59051</guid>
  </item> 
  <item>
   <title><![CDATA[How to make a CXTPToolBar non-movable? :  pCommandBar-&amp;gt;SetFlags(0,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16848&amp;PID=59045&amp;title=how-to-make-a-cxtptoolbar-nonmovable#59045</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=369">SuperMario</a><br /><strong>Subject:</strong> 16848<br /><strong>Posted:</strong> 21 June 2010 at 9:01am<br /><br />pCommandBar-&gt;SetFlags(0, xtpFlagFloating|xtpFlagAlignTop|xtpFlagAlignLeft|xtpFlagAlignRight|xtpFlagAlignBottom);<br>pCommandBar-&gt;SetShowGripper(FALSE);<br>(where pCommandBar is a CXTPCommandBar*)<br><br>The SetFlags call disables floating and limits docking to the top section.&nbsp; Specifying removal of xtpFlagAlignTop prevents the user from dragging the menu bar up and down within the top docking area.&nbsp; The SetShowGripper call removes the gripper, visually indicating to the user that the bar is fixed.&nbsp; Also, it seems that the absence of the gripper gives the menu bar its own row. <br><br>Also can use:<br><br>pCommandBar-&gt;EnableDocking(0);<br>]]>
   </description>
   <pubDate>Mon, 21 Jun 2010 09:01:47 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16848&amp;PID=59045&amp;title=how-to-make-a-cxtptoolbar-nonmovable#59045</guid>
  </item> 
  <item>
   <title><![CDATA[How to make a CXTPToolBar non-movable? : Is there a way to make a CXTPToolBar...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=16848&amp;PID=59025&amp;title=how-to-make-a-cxtptoolbar-nonmovable#59025</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6081">wssdev</a><br /><strong>Subject:</strong> 16848<br /><strong>Posted:</strong> 18 June 2010 at 11:30am<br /><br /><br>Is there a way to make a CXTPToolBar non-movable/non-draggable/non-floating? I want to put it in the top-left corner of the main frame window and to make it stay there (by not having a gripper and not reacting to moust draggining).<br><br>Here's how I create it:<br><br>int MyFrameWnd::OnCreate(LPCREATESTRUCT lpCreateStruct)<br>{<br>&nbsp; if (CXTPFrameWnd::OnCreate(lpCreateStruct) == -1)<br>&nbsp;&nbsp;&nbsp; return -1;<br><br>&nbsp; CXTPCommandBars* pCommandBars = GetCommandBars();<br>&nbsp;&nbsp;&nbsp; <br>&nbsp; CXTPToolBar* myToolbar = static_cast&lt;CXTPToolBar*&gt;(pCommandBars-&gt;Add(_T("MyToolbar"), xtpBarTop));<br>&nbsp; <br>&nbsp; // How to make it non-movable, non-draggable, non-floating..?<br>&nbsp; myToolbar-&gt;?<br>&nbsp; <br><br>Thanks in advance!<br>&nbsp; <br>&nbsp; <br>]]>
   </description>
   <pubDate>Fri, 18 Jun 2010 11:30:13 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=16848&amp;PID=59025&amp;title=how-to-make-a-cxtptoolbar-nonmovable#59025</guid>
  </item> 
 </channel>
</rss>