<?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 add a control into the CXTPToolBar?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : how to add a control into the CXTPToolBar?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 11 Jun 2026 11:59:38 +0000</pubDate>
  <lastBuildDate>Mon, 28 Jul 2008 02:52:15 +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=11577</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 add a control into the CXTPToolBar? : Hi,  Check \Samples\CommandBars\CommonControls...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11577&amp;PID=38968&amp;title=how-to-add-a-control-into-the-cxtptoolbar#38968</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 11577<br /><strong>Posted:</strong> 28 July 2008 at 2:52am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Check \Samples\CommandBars\CommonControls&nbsp; sample</DIV>]]>
   </description>
   <pubDate>Mon, 28 Jul 2008 02:52:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11577&amp;PID=38968&amp;title=how-to-add-a-control-into-the-cxtptoolbar#38968</guid>
  </item> 
  <item>
   <title><![CDATA[how to add a control into the CXTPToolBar? : I want to add a CStatic or CCombobox...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=11577&amp;PID=38882&amp;title=how-to-add-a-control-into-the-cxtptoolbar#38882</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=4370">chentob</a><br /><strong>Subject:</strong> 11577<br /><strong>Posted:</strong> 25 July 2008 at 2:54am<br /><br />I want to add a CStatic or CCombobox&nbsp; control into the CXTPToolBar.but I failed.&nbsp; It is ok when using CToolBar .<DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>My code following:</DIV><DIV>&nbsp;</DIV><DIV>CStatic&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_static;</DIV><DIV>&nbsp;</DIV><DIV>CXTPToolBar* pStandardBar;</DIV><DIV>CXTPCommandBars* pCommandBars;</DIV><DIV>&nbsp;</DIV><DIV>if (!pFrame-&gt;InitCommandBars())<BR>&nbsp;&nbsp;return -1;<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;pCommandBars = pFrame-&gt;GetCommandBars();<BR>&nbsp;<BR>&nbsp;pStandardBar = (CXTPToolBar*)pCommandBars-&gt;Add(_T("Standard"), xtpBarBottom);<BR>&nbsp;if (!pStandardBar ||<BR>&nbsp;&nbsp;!pStandardBar-&gt;LoadToolBar(IDR_TOOLBAR))<BR>&nbsp;{<BR>&nbsp;&nbsp;TRACE0("Failed to create toolbar\n");<BR>&nbsp;&nbsp;return -1;<BR>&nbsp;}</DIV><DIV>&nbsp;</DIV><DIV>this-&gt;m_static.Create( "test" , WS_CHILD | WS_VISIBLE | SS_CENTER | SS_CENTERIMAGE | SS_SUNKEN , rect , pStandardBar);</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>the static could not display "test" in Toolbar, I don't know why?Thanks</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 25 Jul 2008 02:54:27 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=11577&amp;PID=38882&amp;title=how-to-add-a-control-into-the-cxtptoolbar#38882</guid>
  </item> 
 </channel>
</rss>