<?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 : cxtlistctrl selecti&#111;n colour problem</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Toolkit Pro : cxtlistctrl selecti&#111;n colour problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 19 Apr 2026 12:36:43 +0000</pubDate>
  <lastBuildDate>Thu, 13 Nov 2003 12:56:25 +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=241</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[cxtlistctrl selecti&#111;n colour problem : The selected item in a list control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=241&amp;PID=549&amp;title=cxtlistctrl-selection-colour-problem#549</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=97">douglashogan</a><br /><strong>Subject:</strong> 241<br /><strong>Posted:</strong> 13 November 2003 at 12:56pm<br /><br /><P>The selected item in a list control with custom colours does not get painted with the new colours and instead uses the windows default</P><P>?? why is this. It looks really strange.</P><P>Offending code follows...</P><P>&nbsp;</P><P>void CXTListCtrlBase::OnCustomDrawImpl(NMHDR* pNMHDR, LRESULT* pResult) </P><P>{</P><P>...</P><P>&nbsp;&nbsp;&nbsp;&nbsp;// Only change the background colour if the window is enabled, and<BR>&nbsp;&nbsp;&nbsp;&nbsp;// the item is not selected, otherwise use the system default.</P><P>&nbsp;&nbsp;&nbsp;&nbsp;if (m_pListCtrl-&gt;IsWindowEnabled())<BR>&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (m_pListCtrl-&gt;GetItemState(iItem, LVIS_SELECTED) == 0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lplvcd-&gt;clrText&nbsp; &nbsp; = m_clrText;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lplvcd-&gt;clrTextBk = m_clrTextBk;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;}<BR>...</P><P>}</P><P><BR>&nbsp;</P>]]>
   </description>
   <pubDate>Thu, 13 Nov 2003 12:56:25 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=241&amp;PID=549&amp;title=cxtlistctrl-selection-colour-problem#549</guid>
  </item> 
 </channel>
</rss>