<?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 : SliderCtrl:missing selection highlight</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Skin Framework : SliderCtrl:missing selection highlight]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 25 May 2026 15:32:13 +0000</pubDate>
  <lastBuildDate>Mon, 01 Oct 2007 23:33:58 +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=7993</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[SliderCtrl:missing selection highlight : Thank you very much! ]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7993&amp;PID=26760&amp;title=sliderctrlmissing-selection-highlight#26760</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3296">collabear</a><br /><strong>Subject:</strong> 7993<br /><strong>Posted:</strong> 01 October 2007 at 11:33pm<br /><br />Thank you very much!]]>
   </description>
   <pubDate>Mon, 01 Oct 2007 23:33:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7993&amp;PID=26760&amp;title=sliderctrlmissing-selection-highlight#26760</guid>
  </item> 
  <item>
   <title><![CDATA[SliderCtrl:missing selection highlight : You must code it yourself when...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7993&amp;PID=26609&amp;title=sliderctrlmissing-selection-highlight#26609</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=203">Ark42</a><br /><strong>Subject:</strong> 7993<br /><strong>Posted:</strong> 28 September 2007 at 12:50pm<br /><br /><br>You must code it yourself when using Windows XP themes or Office 2007 skin with Codejock - it's not a Codejock issue really, but a design choice of Windows XP.<br><br>Without Codejock, you can just derive from CSliderCtrl to fix this:<br><br>void CMySliderCtrl::OnCustomDraw(NMHDR *pNotifyStruct, LRESULT *result)<br>{<br>&nbsp;&nbsp;&nbsp; NMCUSTOMDRAW *pNmcd = (NMCUSTOMDRAW *)pNotifyStruct;<br><br>&nbsp;&nbsp;&nbsp; switch( pNmcd-&gt;dwDrawStage ) {<br>&nbsp;&nbsp;&nbsp; case CDDS_PREPAINT:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; if( GetStyle() &amp; TBS_ENABLESELRANGE ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; *result = CDRF_NOTIFYITEMDRAW;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; case CDDS_ITEMPREPAINT:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; switch( pNmcd-&gt;dwItemSpec ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case TBCD_CHANNEL: {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CDC *pDC = CDC::FromHandle(pNmcd-&gt;hdc);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CRect rcChannel;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetChannelRect(&amp;rcChannel);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rcChannel.DeflateRect(6, 3);<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; int min, max, selmin, selmax;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetRange(min, max);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; GetSelection(selmin, selmax);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; max -= min;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; selmin = (int)(((double)(selmin - min) / max * rcChannel.Width()) + 0.5) + rcChannel.left;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; selmax = (int)(((double)(selmax - min) / max * rcChannel.Width()) + 0.5) + rcChannel.left;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rcChannel.left = selmin;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; rcChannel.right = selmax;<br><br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pDC-&gt;FillSolidRect(rcChannel, static_cast&lt;CXTPMDIFrameWnd *&gt;(AfxGetMainWnd())-&gt;GetCommandBars()-&gt;GetPaintManager()-&gt;GetXtremeColor(COLOR_HIGHLIGHT));<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pDC-&gt;ExcludeClipRect(rcChannel);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; *result = CDRF_DODEFAULT | CDRF_NOTIFYPOSTPAINT;<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; case CDDS_ITEMPOSTPAINT:<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; switch( pNmcd-&gt;dwItemSpec ) {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; case TBCD_CHANNEL: {<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; CDC *pDC = CDC::FromHandle(pNmcd-&gt;hdc);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; pDC-&gt;SelectClipRgn(NULL);<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; break;<br>&nbsp;&nbsp;&nbsp; }<br>}<br><br>But with Office 2007 skin and such, Codejock does not support CDRF_NOTIFYITEMDRAW in 11.2.&nbsp; A patch for 11.2.1 adds support though.<br><br><br>]]>
   </description>
   <pubDate>Fri, 28 Sep 2007 12:50:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7993&amp;PID=26609&amp;title=sliderctrlmissing-selection-highlight#26609</guid>
  </item> 
  <item>
   <title><![CDATA[SliderCtrl:missing selection highlight : Slider ctrl missing selection...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=7993&amp;PID=25797&amp;title=sliderctrlmissing-selection-highlight#25797</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=3296">collabear</a><br /><strong>Subject:</strong> 7993<br /><strong>Posted:</strong> 13 September 2007 at 6:51am<br /><br /><img src="uploads/20070913_064849_slider.jpg" height="74" width="199" border="0"><br>Slider ctrl missing selection highlight when apply a skin, how to add it?<br>]]>
   </description>
   <pubDate>Thu, 13 Sep 2007 06:51:37 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=7993&amp;PID=25797&amp;title=sliderctrlmissing-selection-highlight#25797</guid>
  </item> 
 </channel>
</rss>