<?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 : Don&#039;t show selected row when control looses focus</title>
  <link>http://forum.codejock.com/</link>
  <description><![CDATA[This is an XML content feed of; Codejock Developer Community : Report Control : Don&#039;t show selected row when control looses focus]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 05 Jun 2026 23:30:06 +0000</pubDate>
  <lastBuildDate>Wed, 30 Aug 2006 13:20: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=4900</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[Don&#039;t show selected row when control looses focus : Hi Martin,  I was wondering...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4900&amp;PID=15340&amp;title=dont-show-selected-row-when-control-looses-focus#15340</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=2151">drisch</a><br /><strong>Subject:</strong> 4900<br /><strong>Posted:</strong> 30 August 2006 at 1:20pm<br /><br /><DIV>Hi Martin,</DIV><DIV>&nbsp;</DIV><DIV>I was wondering this too. I found, somewhat by accident, that the following seems to have the desired result:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp; pControl-&gt;GetPaintManager()-&gt;m_clrBtnFace = GetSysColor(COLOR_WINDOW);<BR>&nbsp; pControl-&gt;GetPaintManager()-&gt;m_clrBtnText = GetSysColor(COLOR_WINDOWTEXT);<BR></DIV>]]>
   </description>
   <pubDate>Wed, 30 Aug 2006 13:20:58 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4900&amp;PID=15340&amp;title=dont-show-selected-row-when-control-looses-focus#15340</guid>
  </item> 
  <item>
   <title><![CDATA[Don&#039;t show selected row when control looses focus : Hi Martin,It would be better to...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4900&amp;PID=15286&amp;title=dont-show-selected-row-when-control-looses-focus#15286</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=862">sserge</a><br /><strong>Subject:</strong> 4900<br /><strong>Posted:</strong> 28 August 2006 at 3:59pm<br /><br />Hi Martin,<br><br>It would be better to implement as a custom handler of GetItemMetrics event. There you can check whether a drawn row is selected, and to change its Fore and Background colors:<br><table width="99%"><tr><td><pre class="BBcode"><br>if (pDrawArgs-&gt;pRow-&gt;IsSelected())<br>{<br>&nbsp;&nbsp;&nbsp; pItemMetrics-&gt;clrForeground = pDrawArgs-&gt;pControl-&gt;GetPaintManager()-&gt;m_clrHighlightText;<br>&nbsp;&nbsp;&nbsp; pItemMetrics-&gt;clrBackground = pDrawArgs-&gt;pControl-&gt;GetPaintManager()-&gt;m_clrHighlight;<br>}<br></pre></td></tr></table><br><br>--<br>WBR,<br>Serge<br>]]>
   </description>
   <pubDate>Mon, 28 Aug 2006 15:59:26 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4900&amp;PID=15286&amp;title=dont-show-selected-row-when-control-looses-focus#15286</guid>
  </item> 
  <item>
   <title><![CDATA[Don&#039;t show selected row when control looses focus : Hi;   how can I setup the control...]]></title>
   <link>http://forum.codejock.com/forum_posts.asp?TID=4900&amp;PID=15267&amp;title=dont-show-selected-row-when-control-looses-focus#15267</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://forum.codejock.com/member_profile.asp?PF=109">mgampi</a><br /><strong>Subject:</strong> 4900<br /><strong>Posted:</strong> 28 August 2006 at 10:07am<br /><br />Hi; <DIV>&nbsp;</DIV><DIV>how can I setup the control to not show the selected row(s) when the control does not have the focus.</DIV><DIV>I want the same behaviour as documented by LVS_SHOWSELALWAYS flag in CListCtrl.</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance</DIV><DIV>&nbsp;</DIV><DIV>Martin</DIV>]]>
   </description>
   <pubDate>Mon, 28 Aug 2006 10:07:57 +0000</pubDate>
   <guid isPermaLink="true">http://forum.codejock.com/forum_posts.asp?TID=4900&amp;PID=15267&amp;title=dont-show-selected-row-when-control-looses-focus#15267</guid>
  </item> 
 </channel>
</rss>