<?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 : Background &#111;n custom comm&#111;n c&#111;ntrols?</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Command Bars : Background &#111;n custom comm&#111;n c&#111;ntrols?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 10:03:27 +0000</pubDate>
  <lastBuildDate>Sat, 26 Jun 2004 19:22:39 +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=838</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[Background &#111;n custom comm&#111;n c&#111;ntrols? : I have done this type of thing...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=838&amp;PID=2357&amp;title=background-on-custom-common-controls#2357</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=537">Kenneth</a><br /><strong>Subject:</strong> 838<br /><strong>Posted:</strong> 26 June 2004 at 7:22pm<br /><br /><P>I have done this type of thing with CDialogBar,&nbsp;where I want the background of the CDialogBar to reflect the current theme colors.&nbsp; The CSliderCtrl is a bit more difficult since it is drawn in stages (see <A href="http://www.codeproject.com/miscctrl/transparentslider.asp?print=true" target="_blank"> http://www.codeproject.com/miscctrl/transparentslider.asp?pr int=true</A>).&nbsp; </P><P>You would also have to call something like:</P><P> &nbsp;XTPPaintManager()-&gt;GradientFill(pDC,rc,XTPPaintMana ger()-&gt;GetXtremeColor(XPCOLOR_BASE),XTPPaintManager()-&gt ;GetXtremeColor(55),FALSE); in order to get the proper gradient fill.&nbsp; I suspect this would be a bit tricky since you are only filling a portion of the CommandBar (the slider itself).<BR></P>]]>
   </description>
   <pubDate>Sat, 26 Jun 2004 19:22:39 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=838&amp;PID=2357&amp;title=background-on-custom-common-controls#2357</guid>
  </item> 
  <item>
   <title><![CDATA[Background &#111;n custom comm&#111;n c&#111;ntrols? :  Does anybody have a good idea...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=838&amp;PID=2214&amp;title=background-on-custom-common-controls#2214</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 838<br /><strong>Posted:</strong> 14 June 2004 at 4:33pm<br /><br />Does anybody have a good idea of how to get the blue gradient as thebackground for common controls? See the CommonControls sample for whatI mean, but that sample only uses the office 2000 theme, probably forthis reason.<br><img src="uploads/Ark42/2004-06-14_163116_Slider.png" border="0"><br>I can override CMainFrame::OnCtlColor and return a new solid brush forthe background color, which would let it work with the Office XP themeand blend in correctly, but I don't see any good way to put a gradientunderneith the common controls.<br><br>I have also tried deriving a class from CSliderCtrl and overridingOnPaint to use CXTMemDC, but the gradient from the toolbar still doesnot show through ever, I just end up with the hall-of-mirrors typeeffect.<br><br><span style="font-size:10px"><br /><br />Edited by Ark42</span>]]>
   </description>
   <pubDate>Mon, 14 Jun 2004 16:33:43 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=838&amp;PID=2214&amp;title=background-on-custom-common-controls#2214</guid>
  </item> 
 </channel>
</rss>