<?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 Zeichnen, aber wie?]]></title><description><![CDATA[<p>Ich kann auf ein Fenster mit Hilfe von BitBlt ohne Probleme eine Bitmap malen. Versuche ich das gleiche mit einem Icon, macht das Programm nichts, dass heißt, das Icon wird nicht angezeigt.<br />
Wie muss ich das Icon laden, mit LoadIcon? Oder nimmt man da eine andere Funktion? (zB.: LoadImage?)<br />
Und wie zeichne ich das Icon letztendlich auf mein Fenster?</p>
<p>Danke schonmal<br />
Gruß Streusselkuchen</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/109017/icon-zeichnen-aber-wie</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 10:47:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/109017.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 05 May 2005 18:47:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Icon Zeichnen, aber wie? on Thu, 05 May 2005 18:47:02 GMT]]></title><description><![CDATA[<p>Ich kann auf ein Fenster mit Hilfe von BitBlt ohne Probleme eine Bitmap malen. Versuche ich das gleiche mit einem Icon, macht das Programm nichts, dass heißt, das Icon wird nicht angezeigt.<br />
Wie muss ich das Icon laden, mit LoadIcon? Oder nimmt man da eine andere Funktion? (zB.: LoadImage?)<br />
Und wie zeichne ich das Icon letztendlich auf mein Fenster?</p>
<p>Danke schonmal<br />
Gruß Streusselkuchen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/782387</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/782387</guid><dc:creator><![CDATA[Streusselkuchen]]></dc:creator><pubDate>Thu, 05 May 2005 18:47:02 GMT</pubDate></item><item><title><![CDATA[Reply to Icon Zeichnen, aber wie? on Thu, 05 May 2005 19:08:16 GMT]]></title><description><![CDATA[<p>Ich würde das statics nehmen:</p>
<pre><code class="language-cpp">static HANDLE hIcon;
static HWND hwndStatic;

hIcon = LoadImage(GetModuleHandle (NULL), &quot;Icon.ico&quot;, IMAGE_ICON, 0, 0, LR_DEFAULTCOLOR | LR_LOADFROMFILE); 

hwndStatic = CreateWindow(&quot;STATIC&quot;, &quot;&quot;, WS_CHILD | WS_VISIBLE | SS_ICON, 100, 100, 32, 32, hwnd, NULL, (HINSTANCE) GetWindowLong (hwnd, GWL_HINSTANCE), NULL);
SendMessage (hwndStatic, STM_SETIMAGE, (WPARAM) IMAGE_ICON, (LPARAM)(HANDLE) hIcon);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/782399</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/782399</guid><dc:creator><![CDATA[RedEagle]]></dc:creator><pubDate>Thu, 05 May 2005 19:08:16 GMT</pubDate></item><item><title><![CDATA[Reply to Icon Zeichnen, aber wie? on Fri, 06 May 2005 00:01:31 GMT]]></title><description><![CDATA[<p>oder DrawIcon() bzw. DrawIconEx() nehmen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";D"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/782503</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/782503</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Fri, 06 May 2005 00:01:31 GMT</pubDate></item></channel></rss>