<?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[Bitmaps&#x2F;Icon in Button]]></title><description><![CDATA[<p>Hallo!<br />
Ich würde gerne statt dem Text am Button ein Bild(Icon oder ähnliches) anzeigen!<br />
Weiß jemand wie das geht??</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/212866/bitmaps-icon-in-button</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 22:17:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/212866.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 11 May 2008 17:12:51 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bitmaps&#x2F;Icon in Button on Sun, 11 May 2008 17:12:51 GMT]]></title><description><![CDATA[<p>Hallo!<br />
Ich würde gerne statt dem Text am Button ein Bild(Icon oder ähnliches) anzeigen!<br />
Weiß jemand wie das geht??</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1507098</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1507098</guid><dc:creator><![CDATA[Designer999]]></dc:creator><pubDate>Sun, 11 May 2008 17:12:51 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmaps&#x2F;Icon in Button on Sun, 11 May 2008 17:31:53 GMT]]></title><description><![CDATA[<p>BS_OWNERDRAW</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1507104</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1507104</guid><dc:creator><![CDATA[haterskater]]></dc:creator><pubDate>Sun, 11 May 2008 17:31:53 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmaps&#x2F;Icon in Button on Sun, 11 May 2008 17:49:02 GMT]]></title><description><![CDATA[<p>Hmm ein bisschen mehr Infowäre hilfreich!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1507116</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1507116</guid><dc:creator><![CDATA[Designer999]]></dc:creator><pubDate>Sun, 11 May 2008 17:49:02 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmaps&#x2F;Icon in Button on Sun, 11 May 2008 18:27:26 GMT]]></title><description><![CDATA[<p>Ein altes aber immer wieder kehrendes Thema war zwar lang nichmehr da aber mit der suche hättest bestimmt was gefunden</p>
<p>bsp. für bitmaps</p>
<pre><code class="language-cpp">//handle erzeugen
HANDLE	hBitButClose;

// Button erzeugen
hClose = CreateWindow(  &quot;button&quot;,&quot;Close&quot;,
                        WS_CHILD | WS_VISIBLE |BS_PUSHBUTTON | BS_BITMAP,
                        135, 230, 40, 40,
                        hWnd,
                        (HMENU) IDM_EXIT,
                        ((LPCREATESTRUCT) lParam) -&gt; hInstance,
                        NULL);
//Bitmap Laden
hBitButClose = LoadBitmap(hInst, MAKEINTRESOURCE(IDB_CLOSE));
	       SendMessage(hClose, BM_SETIMAGE, (WPARAM)IMAGE_BITMAP,
	       (LPARAM)(HANDLE)hBitButClose);

//MAKEINTRESOURCE(IDB_CLOSE)); ist die Bitmap in der resource datei
</code></pre>
<p>Also denke das sind mehr info's<br />
Mach was draus <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
<p>MFG Ascharan</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1507136</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1507136</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Sun, 11 May 2008 18:27:26 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmaps&#x2F;Icon in Button on Sun, 11 May 2008 18:31:00 GMT]]></title><description><![CDATA[<p>Thx!<br />
Nur eine Frage hätte ich noch!<br />
Wie mache ich das wenn ich den Button auch als Ressource erstellt habe!Also ohne Code..</p>
<p>THX</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1507138</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1507138</guid><dc:creator><![CDATA[Designer999]]></dc:creator><pubDate>Sun, 11 May 2008 18:31:00 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmaps&#x2F;Icon in Button on Sun, 11 May 2008 21:16:06 GMT]]></title><description><![CDATA[<p>eigendlich auf die selbe art gibst die resource an mit GetDlgItem(hWnd, &lt;Deine Resource ID&gt;)</p>
<pre><code class="language-cpp">hBitButClose = LoadBitmap(hInst, MAKEINTRESOURCE(IDB_CLOSE));
	       SendMessage(GetDlgItem(hWnd, IDC_CLOSE), BM_SETIMAGE, (WPARAM)IMAGE_BITMAP,
		(LPARAM)(HANDLE)hBitButClose);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1507202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1507202</guid><dc:creator><![CDATA[Ascharan]]></dc:creator><pubDate>Sun, 11 May 2008 21:16:06 GMT</pubDate></item></channel></rss>