<?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[Icon wird falsch angezeigt]]></title><description><![CDATA[<p>Ich habe meinem Dialog damit ein Icon zugewießen:</p>
<pre><code class="language-cpp">case WM_INITDIALOG:
		 SetClassLong(hDlg, GCL_HICON, IDI_ICON1);
</code></pre>
<p>Jedoch wird das Icon nur bei der .exe gesetzt.<br />
Bei der Programmausführung ist oben links beim Programm auf einmal dieser PC abgebildet und nicht mein eigenes ICON<br />
Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/223901/icon-wird-falsch-angezeigt</link><generator>RSS for Node</generator><lastBuildDate>Sat, 11 Apr 2026 23:04:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/223901.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 02 Oct 2008 10:55:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Icon wird falsch angezeigt on Thu, 02 Oct 2008 10:55:27 GMT]]></title><description><![CDATA[<p>Ich habe meinem Dialog damit ein Icon zugewießen:</p>
<pre><code class="language-cpp">case WM_INITDIALOG:
		 SetClassLong(hDlg, GCL_HICON, IDI_ICON1);
</code></pre>
<p>Jedoch wird das Icon nur bei der .exe gesetzt.<br />
Bei der Programmausführung ist oben links beim Programm auf einmal dieser PC abgebildet und nicht mein eigenes ICON<br />
Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1592025</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1592025</guid><dc:creator><![CDATA[Markus49111]]></dc:creator><pubDate>Thu, 02 Oct 2008 10:55:27 GMT</pubDate></item><item><title><![CDATA[Reply to Icon wird falsch angezeigt on Thu, 02 Oct 2008 11:09:32 GMT]]></title><description><![CDATA[<p>Bin mir net sicher aber versuch mal:</p>
<pre><code class="language-cpp">case WM_INITDIALOG:
         SetClassLong(hDlg, GCL_HICON, MAKEINRESOURCE(IDI_ICON1) );
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1592037</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1592037</guid><dc:creator><![CDATA[DataByte]]></dc:creator><pubDate>Thu, 02 Oct 2008 11:09:32 GMT</pubDate></item><item><title><![CDATA[Reply to Icon wird falsch angezeigt on Thu, 02 Oct 2008 11:18:22 GMT]]></title><description><![CDATA[<p>Dafür gibt es WM_SETICON! Dafür muss man nicht in der Fensterklasse rumpopeln.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1592048</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1592048</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 02 Oct 2008 11:18:22 GMT</pubDate></item><item><title><![CDATA[Reply to Icon wird falsch angezeigt on Thu, 02 Oct 2008 11:39:38 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">SendMessage(hDlg, WM_SETICON, ICON_BIG, IDI_ICON1);
		 SendMessage(hDlg, WM_SETICON, ICON_SMALL, IDI_ICON2);
</code></pre>
<p>habs mal so gemacht. Bei der exe ist das ICON da , jedoch bei der programmausführung links oben ist jetzt gar kein ICON</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1592067</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1592067</guid><dc:creator><![CDATA[ausbildungsleiter]]></dc:creator><pubDate>Thu, 02 Oct 2008 11:39:38 GMT</pubDate></item><item><title><![CDATA[Reply to Icon wird falsch angezeigt on Thu, 02 Oct 2008 12:10:29 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">case WM_INITDIALOG:
         SendMessage(hDlg,
				    WM_SETICON,
				   (WPARAM) FALSE,
				   (LPARAM) LoadImage(hInstance,
									MAKEINTRESOURCE(IDI_MAINICON),
									IMAGE_ICON,
									16, 16,
									FALSE));
</code></pre>
<p>Damit wird das kleine 16x16 Icon benutzt, was offenbar besser aussieht als das schlecht herunterskalierte 32x32.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1592088</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1592088</guid><dc:creator><![CDATA[Blaze]]></dc:creator><pubDate>Thu, 02 Oct 2008 12:10:29 GMT</pubDate></item><item><title><![CDATA[Reply to Icon wird falsch angezeigt on Thu, 02 Oct 2008 13:15:06 GMT]]></title><description><![CDATA[<p>Blaze schrieb:</p>
<blockquote>
<pre><code class="language-cpp">case WM_INITDIALOG:
         SendMessage(hDlg,
				    WM_SETICON,
				   (WPARAM) FALSE,
				   (LPARAM) LoadImage(hInstance,
									MAKEINTRESOURCE(IDI_MAINICON),
									IMAGE_ICON,
									16, 16,
									FALSE));
</code></pre>
<p>Damit wird das kleine 16x16 Icon benutzt, was offenbar besser aussieht als das schlecht herunterskalierte 32x32.</p>
</blockquote>
<p>Und was ist mit DeleteObject?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1592151</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1592151</guid><dc:creator><![CDATA[winapi noob]]></dc:creator><pubDate>Thu, 02 Oct 2008 13:15:06 GMT</pubDate></item><item><title><![CDATA[Reply to Icon wird falsch angezeigt on Thu, 02 Oct 2008 13:43:56 GMT]]></title><description><![CDATA[<p>Wieso DeleteObject? Ressourcen wie Icons die die ganze Zeit in Nutzung sind müssen nicht freigegeben werden.<br />
Wie soll das auch gehen. Das Icon des Dialoges ist mindestens so lange in Nutzung wie der Dialog selbst.</p>
<blockquote>
<p>The system automatically deletes these resources when the process that created them terminates; however, calling the appropriate function saves memory and decreases the size of the process's working set.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1592189</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1592189</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 02 Oct 2008 13:43:56 GMT</pubDate></item><item><title><![CDATA[Reply to Icon wird falsch angezeigt on Fri, 03 Oct 2008 07:15:36 GMT]]></title><description><![CDATA[<p>Ich meinete damit den Handle den SendMessage zurückgibt, wenn vorher ein anderes Icon da war.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1592736</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1592736</guid><dc:creator><![CDATA[winapi noob]]></dc:creator><pubDate>Fri, 03 Oct 2008 07:15:36 GMT</pubDate></item><item><title><![CDATA[Reply to Icon wird falsch angezeigt on Fri, 03 Oct 2008 07:25:04 GMT]]></title><description><![CDATA[<p>winapi noob schrieb:</p>
<blockquote>
<p>Ich meinete damit den Handle den SendMessage zurückgibt, wenn vorher ein anderes Icon da war.</p>
</blockquote>
<p>Ist meistens sowieso ein System Icon, oder eine Ressource, solange man den Code nicht benutzt alle 2 Sekunden eine <strong>neues</strong> Icon zu verwenden sehe ich da kein Problem. (Siehe Doku von LoadImage).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1592745</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1592745</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Fri, 03 Oct 2008 07:25:04 GMT</pubDate></item></channel></rss>