<?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 : when the toolbar docking both side, nothing!</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : when the toolbar docking both side, nothing!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 14 Jun 2026 18:09:00 +0000</pubDate>
  <lastBuildDate>Sun, 25 Oct 2009 20:23: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=15427</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[when the toolbar docking both side, nothing! : Hi, &amp;lt;create toolbar &amp;gt; ...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15427&amp;PID=54172&amp;title=when-the-toolbar-docking-both-side-nothing#54172</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5572">suchout</a><br /><strong>Subject:</strong> 15427<br /><strong>Posted:</strong> 25 October 2009 at 8:23pm<br /><br /><P>Hi,</P><DIV>&lt;&nbsp;create toolbar &gt;</DIV><DIV>&nbsp;&nbsp; m_pToolBar = (CXTPToolBar*)m_pCmdBars-&gt;Add(_T("toolbar"), m_aNFInfo-&gt;vec_tbInfo<em>.BarPos);<BR>&nbsp;&nbsp;&nbsp;if (!m_pToolBar || !m_pToolBar-&gt;LoadToolBar(IDR_MAINFRAME)) {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;TRACE0("Failed to create toolbar\n");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;return;<BR>&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>&nbsp; &lt; and clear toolbar &gt;</DIV><DIV>&nbsp;&nbsp; int i, nCount;</DIV><DIV>&nbsp; &nbsp;for (i = 1; i &lt; pMainCommandBars-&gt;GetCount();i++) {&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_pToolBar = pMainCommandBars-&gt;GetAt(i);&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;nCount = m_pToolBar-&gt;GetControlCount();&nbsp;&nbsp;<BR>&nbsp;&nbsp; &nbsp;&nbsp; for (int j = 0; j &lt; nCount; j++) {<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;m_pToolBar-&gt;GetControls()-&gt;Remove(0);&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;}<BR>&nbsp; &nbsp;}</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&lt; and dynamic add &gt;</DIV><DIV>&nbsp;&nbsp; char *_path, *_image, *_tok;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;CString *sPath;<BR>&nbsp;&nbsp;&nbsp;HICON hIcon = NULL;<BR>&nbsp;&nbsp;&nbsp;HBITMAP hBitmap = NULL;<BR>&nbsp;&nbsp;&nbsp;CXTPImageManagerIconHandle icoHandle;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;m_ToolbarID&#091;0&#093; = WM_USER + m_nUserid;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;if (strstr(_tok, "ICON")) {</DIV><DIV>&nbsp;&nbsp; &nbsp;&nbsp; hIcon = (HICON)LoadImage(NULL, *sPath, IMAGE_ICON, 16, 16, LR_LOADFROMFILE | LR_CREATEDIBSECTION);<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;icoHandle.CopyHandle(CXTPImageManagerIconHandle(hIcon));</DIV><DIV>&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;else if(strstr(_tok, "BMP")) {&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;sprintf(_image, "<a href="file://\\%s.bmp" target="_blank">\\%s.bmp</A>", tool_info.image);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;strcat(_path, _image);<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;sPath = new CString(_path);&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;m_hbmImage = LoadImage(NULL, *sPath, IMAGE_BITMAP, 16, 16, LR_LOADFROMFILE | LR_CREATEDIBSECTION );&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;BITMAP bm = {0};<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ::GetObject(m_hbmImage, sizeof(bm), &amp;bm );<BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;CBitmap bmpIcon;<BR>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;bmpIcon.Attach(m_hbmImage);&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;CSize iconSize(bm.bmWidth, bm.bmHeight);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;HICON hIcon = CXTPTransparentBitmap(bmpIcon).ConvertToIcon();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;icoHandle = hIcon;<BR>&nbsp;&nbsp;&nbsp;}&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;&nbsp;&nbsp;m_hIcon = icoHandle.GetIcon();<BR>&nbsp;&nbsp;&nbsp;m_pToolBar-&gt;GetControls()-&gt;Add(xtpControlCustom, m_ToolbarID&#091;0&#093;);&nbsp;<BR>&nbsp;&nbsp;&nbsp;m_pToolBar-&gt;GetControl(m_pToolBar-&gt;GetControls()-&gt;GetCount() - 1)-&gt;SetCustomIcon(m_hIcon);&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;m_pToolBar-&gt;GetControl(m_pToolBar-&gt;GetControls()-&gt;GetCount() - 1)-&gt;SetTooltip((CString)tool_info._name);<BR>&nbsp;&nbsp;&nbsp;</DIV><DIV>&nbsp;</DIV><DIV>is there any fault in this code? or ..??</DIV><DIV>&nbsp;</DIV><DIV>thank you</DIV>]]>
   </description>
   <pubDate>Sun, 25 Oct 2009 20:23:02 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15427&amp;PID=54172&amp;title=when-the-toolbar-docking-both-side-nothing#54172</guid>
  </item> 
  <item>
   <title><![CDATA[when the toolbar docking both side, nothing! : Hi,  Show some code where you...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15427&amp;PID=54108&amp;title=when-the-toolbar-docking-both-side-nothing#54108</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 15427<br /><strong>Posted:</strong> 23 October 2009 at 8:46am<br /><br />Hi,<DIV>&nbsp;</DIV><DIV>Show some code where you create it.</DIV>]]>
   </description>
   <pubDate>Fri, 23 Oct 2009 08:46:00 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15427&amp;PID=54108&amp;title=when-the-toolbar-docking-both-side-nothing#54108</guid>
  </item> 
  <item>
   <title><![CDATA[when the toolbar docking both side, nothing! : Hi  i developed dynamic toolbar.  and,...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=15427&amp;PID=54097&amp;title=when-the-toolbar-docking-both-side-nothing#54097</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=5572">suchout</a><br /><strong>Subject:</strong> 15427<br /><strong>Posted:</strong> 23 October 2009 at 5:41am<br /><br /><P>Hi </P><DIV>i developed dynamic toolbar.</DIV><DIV>&nbsp;</DIV><DIV>and, if the toolbar is docking top or bottom ,&nbsp; buttons are show</DIV><DIV><img src="http://forum.codejock.com/uploads/20091023_053544_ex_OK.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV>but toolbar&nbsp;was dragged left or right side,&nbsp;the toolbar is empty,</DIV><DIV>&nbsp;</DIV><DIV><img src="http://forum.codejock.com/uploads/20091023_053416_ex_NO.jpg" border="0"></DIV><DIV>&nbsp;</DIV><DIV>i don't know what&nbsp;to do..&#12640;&#12640;</DIV><DIV>&nbsp;</DIV><DIV>please help me handsom guys~^^</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Fri, 23 Oct 2009 05:41:12 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=15427&amp;PID=54097&amp;title=when-the-toolbar-docking-both-side-nothing#54097</guid>
  </item> 
 </channel>
</rss>