<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[CListCtrl und Mouseoverefekt]]></title><description><![CDATA[<p>hoi ich würde gerne in meine CListCtrl einen mouseoverefekt machen, das klappt mit</p>
<pre><code class="language-cpp">m_Liste_.SetExtendedStyle(LVS_EX_FULLROWSELECT| LVS_EX_ONECLICKACTIVATE);
</code></pre>
<p>jedoch wird da der Text nur blau gezeichnet. ich möchte aber das der hintergrund grau gezeichnet wird ... hat da wer evl ne idee? komme da irgendwie net weiter und die Zeichenroutiene neuschreiben will ich das ganze nur wenns net anders geht.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/76493/clistctrl-und-mouseoverefekt</link><generator>RSS for Node</generator><lastBuildDate>Fri, 24 Apr 2026 18:42:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/76493.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 12 Jun 2004 08:15:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CListCtrl und Mouseoverefekt on Sat, 12 Jun 2004 08:15:47 GMT]]></title><description><![CDATA[<p>hoi ich würde gerne in meine CListCtrl einen mouseoverefekt machen, das klappt mit</p>
<pre><code class="language-cpp">m_Liste_.SetExtendedStyle(LVS_EX_FULLROWSELECT| LVS_EX_ONECLICKACTIVATE);
</code></pre>
<p>jedoch wird da der Text nur blau gezeichnet. ich möchte aber das der hintergrund grau gezeichnet wird ... hat da wer evl ne idee? komme da irgendwie net weiter und die Zeichenroutiene neuschreiben will ich das ganze nur wenns net anders geht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/538441</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/538441</guid><dc:creator><![CDATA[ImANewBie]]></dc:creator><pubDate>Sat, 12 Jun 2004 08:15:47 GMT</pubDate></item><item><title><![CDATA[Reply to CListCtrl und Mouseoverefekt on Mon, 14 Jun 2004 07:29:58 GMT]]></title><description><![CDATA[<p>*schieb* <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f921.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--clown_face"
      title=":clown:"
      alt="🤡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/539663</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539663</guid><dc:creator><![CDATA[ImANewBie]]></dc:creator><pubDate>Mon, 14 Jun 2004 07:29:58 GMT</pubDate></item><item><title><![CDATA[Reply to CListCtrl und Mouseoverefekt on Mon, 14 Jun 2004 10:32:14 GMT]]></title><description><![CDATA[<p>Leite Dir doch eine Klasse von CListCtrl ab und checke darin die CustomDraw Nachrichten. Dort holst Du Dir den CDDS_ITEMPREPAINT Draw-Stage und checkst die uItemState auf CDIS_HOT:</p>
<pre><code class="language-cpp">void CMyListCtrl::OnCustomDraw(NMHDR* pNMHDR, LRESULT* pResult)
{
	NMLVCUSTOMDRAW* pLVCD = reinterpret_cast&lt;NMLVCUSTOMDRAW*&gt;( pNMHDR );
	*pResult = 0;
	switch (pLVCD-&gt;nmcd.dwDrawStage)
		{
		case CDDS_PREPAINT:
			// Wir wollen eine ITEMPREPAINT Nachricht also:
			*pResult = CDRF_NOTIFYITEMDRAW;
			break;
		case CDDS_ITEMPREPAINT:
			{
				if((pLVCD-&gt;nmcd.uItemState &amp; CDIS_HOT) ==  CDIS_HOT)
				{
					pLVCD-&gt;clrText = RGB(0,0,0); // Deine Textfarbe
					pLVCD-&gt;clrTextBk = RGB(240, 240, 240); // Deine Hintergrundfarbe
				}
				*pResult = CDRF_DODEFAULT;
			break;
			}
		default:
			*pResult = CDRF_DODEFAULT;
			break;
		}
}
</code></pre>
<p>Gruß T. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/539779</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/539779</guid><dc:creator><![CDATA[Theo]]></dc:creator><pubDate>Mon, 14 Jun 2004 10:32:14 GMT</pubDate></item><item><title><![CDATA[Reply to CListCtrl und Mouseoverefekt on Mon, 14 Jun 2004 17:14:09 GMT]]></title><description><![CDATA[<p>100000000 Dank:)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/540187</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/540187</guid><dc:creator><![CDATA[ImANewBie]]></dc:creator><pubDate>Mon, 14 Jun 2004 17:14:09 GMT</pubDate></item></channel></rss>