<?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 : CXTToolBar in a C&#070;ormView</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : CXTToolBar in a C&#070;ormView]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 26 Apr 2026 00:22:45 +0000</pubDate>
  <lastBuildDate>Wed, 21 May 2003 10:43:02 +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=11</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[CXTToolBar in a C&#070;ormView : Hello, Take a look at the FlatTabView...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11&amp;PID=49&amp;title=cxttoolbar-in-a-cformview#49</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=1">kstowell</a><br /><strong>Subject:</strong> 11<br /><strong>Posted:</strong> 21 May 2003 at 10:43am<br /><br /><P>Hello,</P><P>Take a look at the <strong>FlatTabView</strong> sample project.&nbsp; You need to create your toolbar as a child of the CMDIChildWnd for your view to do this correctly.&nbsp; See <strong>CChildFrame::OnCreate </strong>for more details...hope this helps.</P><P>Best regards,<BR>Codejock Support</P>]]>
   </description>
   <pubDate>Wed, 21 May 2003 10:43:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11&amp;PID=49&amp;title=cxttoolbar-in-a-cformview#49</guid>
  </item> 
  <item>
   <title><![CDATA[CXTToolBar in a C&#070;ormView : I added the following code to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11&amp;PID=19&amp;title=cxttoolbar-in-a-cformview#19</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=15">spike</a><br /><strong>Subject:</strong> 11<br /><strong>Posted:</strong> 13 May 2003 at 9:36am<br /><br /><P>I added the following code to a form view to add a toolbar to the top of the form...</P><P>int CProjectGenInfoFormView::OnCreate(LPCREATESTRUCT lpCreateStruct) <BR>{<BR>&nbsp;&nbsp;&nbsp; &nbsp;if (CProjectBASEFormView::OnCreate(lpCreateStruct) == -1)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;return -1;</P><P>&nbsp;&nbsp;&nbsp; CImageList imageList;<BR>&nbsp;&nbsp;&nbsp; &nbsp;imageList.Create(16, 16, ILC_COLOR8 | ILC_MASK,&nbsp; 1, 0);</P><P>&nbsp;&nbsp;&nbsp; &nbsp;m_wndToolBar.CreateEx(this, TBSTYLE_FLAT | TBSTYLE_LIST | TBSTYLE_TRANSPARENT,&nbsp;&nbsp;&nbsp;WS_CHILD | WS_VISIBLE | CBRS_TOP&nbsp;| CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC);</P><P>&nbsp;&nbsp;&nbsp;&nbsp; //AddButton is my own function, works ok</P><P>&nbsp;&nbsp;&nbsp;&nbsp; m_wndToolBar.AddButton( 0, ID_PROJECTGENINFO_NEW, IDI_ICON1, "&amp;New" );</P><P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;m_wndToolBar.MoveWindow( 2, 2, 400, 32 );</P><P>}</P><P>&nbsp;</P><P>The problem is that the toolbar does not become enabled until the View is activated, once the view is deactivated the toolbar is deactivated. Is there a way to keep it activated at all times?</P><P>&nbsp;</P><P>Thanks</P>]]>
   </description>
   <pubDate>Tue, 13 May 2003 09:36:55 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11&amp;PID=19&amp;title=cxttoolbar-in-a-cformview#19</guid>
  </item> 
 </channel>
</rss>