<?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 : Toolbar button colors</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : Toolbar button colors]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 06 Apr 2026 01:17:24 +0000</pubDate>
  <lastBuildDate>Fri, 04 Aug 2006 08:24:34 +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=4690</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[Toolbar button colors : Hi  Try CustomThemes sample...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4690&amp;PID=14669&amp;title=toolbar-button-colors#14669</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4690<br /><strong>Posted:</strong> 04 August 2006 at 8:24am<br /><br /><DIV>Hi</DIV><DIV>&nbsp;</DIV><DIV>Try CustomThemes sample - it show how use custom paint managers. Check how it works, check DrawRectangle methods.</DIV>]]>
   </description>
   <pubDate>Fri, 04 Aug 2006 08:24:34 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4690&amp;PID=14669&amp;title=toolbar-button-colors#14669</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar button colors :   oleg wrote: There is no buildin...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4690&amp;PID=14668&amp;title=toolbar-button-colors#14668</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2133">venkyhyd</a><br /><strong>Subject:</strong> 4690<br /><strong>Posted:</strong> 04 August 2006 at 7:32am<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by oleg" alt="Originally posted by oleg" style="vertical-align: text-bottom;" /> <strong>oleg wrote:</strong><br /><br /><DIV>There is no buildin method. But you can always override paint manager and its DrawControlToolbarParent method and fill contol.</DIV></td></tr></table> <DIV>&nbsp;</DIV><DIV>Hello </DIV><DIV>&nbsp;</DIV><DIV>We could draw borders around the button in the Toolbar, using the following code:<FONT size=2></DIV><P>CXTPCommandBars* pCommandBars = GetCommandBars();</P><P>CXTPToolBar* pMYTOOLBAR=pCommandBars-&gt;GetToolBar(IDR_MAINFRAME);</P><P></FONT><FONT color=#0000ff size=2>int</FONT><FONT size=2> i=pMYTOOLBAR-&gt;GetControls()-&gt;GetCount();</P><P>CXTPControl* pControl=pMYTOOLBAR-&gt;GetControls()-&gt;GetAt(1); //Note: here 1 should be the Button Id;</P><P></FONT><FONT size=2>CRect rc;</P><P>rc=pControl-&gt;GetRect(); </P><P>CDC* pDC = pMYTOOLBAR-&gt;GetDC();</P><P>pControl-&gt;GetPaintManager()-&gt;Draw3dRect(pDC,rc,0,0);</P><DIV></DIV><DIV>But with this we are able to draw border to the button and on the mouse move over the Toolbar the button is getting refreshed and Border is not persisting.</DIV><DIV>&nbsp;</DIV><DIV>Can you suggest on this or any other work around to implement this.</DIV><DIV>&nbsp;</DIV><DIV>thanks</FONT></DIV>]]>
   </description>
   <pubDate>Fri, 04 Aug 2006 07:32:15 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4690&amp;PID=14668&amp;title=toolbar-button-colors#14668</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar button colors : Hello,  There is no buildin...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4690&amp;PID=14570&amp;title=toolbar-button-colors#14570</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=6851">Oleg</a><br /><strong>Subject:</strong> 4690<br /><strong>Posted:</strong> 02 August 2006 at 4:53pm<br /><br />Hello,<DIV>&nbsp;</DIV><DIV>There is no buildin method. But you can always override paint manager and its DrawControlToolbarParent method and fill contol.</DIV>]]>
   </description>
   <pubDate>Wed, 02 Aug 2006 16:53:04 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4690&amp;PID=14570&amp;title=toolbar-button-colors#14570</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar button colors :    venkyhyd wrote:hi  how...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4690&amp;PID=14523&amp;title=toolbar-button-colors#14523</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2133">venkyhyd</a><br /><strong>Subject:</strong> 4690<br /><strong>Posted:</strong> 02 August 2006 at 12:11am<br /><br /><img alt="Cry" src="http://forum.codejock.com/smileys/smiley19.gif" align="absmiddle" border="0"><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by venkyhyd" alt="Originally posted by venkyhyd" style="vertical-align: text-bottom;" /> <strong>venkyhyd wrote:</strong><br /><br />hi<div>&nbsp;</div><div>how can we dynamically change the color of a particular button in a specific toolbar. </div><div>&nbsp;</div><div>Thanks</div></td></tr></table>]]>
   </description>
   <pubDate>Wed, 02 Aug 2006 00:11:05 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4690&amp;PID=14523&amp;title=toolbar-button-colors#14523</guid>
  </item> 
  <item>
   <title><![CDATA[Toolbar button colors : hi  how can we dynamically change...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4690&amp;PID=14501&amp;title=toolbar-button-colors#14501</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2133">venkyhyd</a><br /><strong>Subject:</strong> 4690<br /><strong>Posted:</strong> 01 August 2006 at 12:43am<br /><br />hi<DIV>&nbsp;</DIV><DIV>how can we dynamically change the color of a particular button in a specific toolbar. </DIV><DIV>&nbsp;</DIV><DIV>Thanks</DIV>]]>
   </description>
   <pubDate>Tue, 01 Aug 2006 00:43:20 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4690&amp;PID=14501&amp;title=toolbar-button-colors#14501</guid>
  </item> 
 </channel>
</rss>