<?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[Was mache ich falsch ??? ;|]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein ListControl erstellt und möchte nun mittels eines Timers feststellen, ob eine Check-Box in dem ListControl ein Haken hat oder nicht.<br />
Und Sobald eine Check-Box ein Haken hat, wird das ein Icon gesetzt !</p>
<p>Ich mache das so, doch es passiert nichts wenn ich ein haken sezte !</p>
<pre><code>if(nIDEvent == TIMER)
	{
		CListCtrl* pList = (CListCtrl*) GetDlgItem(IDC_LIST1);
		for (int i = 0; i &lt; pList-&gt;GetItemCount(); i++);
		if(pList-&gt;GetCheck(i) == 1)
		{
			HICON hIcon1;
			m_imageList.Create(16,16,0,8,8);
			hIcon1 = AfxGetApp()-&gt;LoadIcon(IDI_ICON2);
			m_imageList.Add(hIcon1);
		}
	}
</code></pre>
<p>Kann mir jemand sagen was ich falsch mache ???</p>
<p>Danke<br />
:: NoName ::</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/79357/was-mache-ich-falsch</link><generator>RSS for Node</generator><lastBuildDate>Sun, 19 Apr 2026 02:03:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/79357.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 10 Jul 2004 12:52:32 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Was mache ich falsch ??? ;| on Sat, 10 Jul 2004 12:52:32 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein ListControl erstellt und möchte nun mittels eines Timers feststellen, ob eine Check-Box in dem ListControl ein Haken hat oder nicht.<br />
Und Sobald eine Check-Box ein Haken hat, wird das ein Icon gesetzt !</p>
<p>Ich mache das so, doch es passiert nichts wenn ich ein haken sezte !</p>
<pre><code>if(nIDEvent == TIMER)
	{
		CListCtrl* pList = (CListCtrl*) GetDlgItem(IDC_LIST1);
		for (int i = 0; i &lt; pList-&gt;GetItemCount(); i++);
		if(pList-&gt;GetCheck(i) == 1)
		{
			HICON hIcon1;
			m_imageList.Create(16,16,0,8,8);
			hIcon1 = AfxGetApp()-&gt;LoadIcon(IDI_ICON2);
			m_imageList.Add(hIcon1);
		}
	}
</code></pre>
<p>Kann mir jemand sagen was ich falsch mache ???</p>
<p>Danke<br />
:: NoName ::</p>
]]></description><link>https://www.c-plusplus.net/forum/post/557444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557444</guid><dc:creator><![CDATA[__NoName__]]></dc:creator><pubDate>Sat, 10 Jul 2004 12:52:32 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich falsch ??? ;| on Sat, 10 Jul 2004 17:35:03 GMT]]></title><description><![CDATA[<p>Hast du gepüft ob dein Timer kommt? Setzt doch mal einen Haltepunk.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/557651</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557651</guid><dc:creator><![CDATA[sven1978]]></dc:creator><pubDate>Sat, 10 Jul 2004 17:35:03 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich falsch ??? ;| on Sat, 10 Jul 2004 17:55:30 GMT]]></title><description><![CDATA[<p>Doch, der Timer wird gestartet !!! Es muss an der Art liegen wie ich die Check-Boxen überprüfe !!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/557667</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557667</guid><dc:creator><![CDATA[__NoName__]]></dc:creator><pubDate>Sat, 10 Jul 2004 17:55:30 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich falsch ??? ;| on Sat, 10 Jul 2004 18:02:16 GMT]]></title><description><![CDATA[<p>Also, es funktioniert alles so weit, außer das er das Icon nicht setzt ! Der Code zum setzen des Icons ist doch richtig, oder ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/557676</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557676</guid><dc:creator><![CDATA[__NoName__]]></dc:creator><pubDate>Sat, 10 Jul 2004 18:02:16 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich falsch ??? ;| on Sat, 10 Jul 2004 18:09:37 GMT]]></title><description><![CDATA[<p>Wieso willst du bei jedem Timeraufruf die ImageList setzen ?</p>
<p>Devil</p>
]]></description><link>https://www.c-plusplus.net/forum/post/557679</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557679</guid><dc:creator><![CDATA[phlox81]]></dc:creator><pubDate>Sat, 10 Jul 2004 18:09:37 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich falsch ??? ;| on Sat, 10 Jul 2004 18:34:26 GMT]]></title><description><![CDATA[<p>Der Timer soll einfach nur überprüfen ob ein Haken gesetzt wurde, und wenn ein haken gesetzt wurde, dann wird ein Icon hinzugefügt ! Das Icon setze ich mit m_imageList, wie solls denn anders gehen ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/557700</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557700</guid><dc:creator><![CDATA[__NoName__]]></dc:creator><pubDate>Sat, 10 Jul 2004 18:34:26 GMT</pubDate></item><item><title><![CDATA[Reply to Was mache ich falsch ??? ;| on Sun, 11 Jul 2004 11:18:01 GMT]]></title><description><![CDATA[<p>Er setzt einfach nur das Icon nicht ! Hat denn niemand eine Lösung ???</p>
]]></description><link>https://www.c-plusplus.net/forum/post/557974</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/557974</guid><dc:creator><![CDATA[__NoName__]]></dc:creator><pubDate>Sun, 11 Jul 2004 11:18:01 GMT</pubDate></item></channel></rss>