<?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[Bitmap-Button]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe folgendes Problem:<br />
Ich möchte einen Button, der ein Bild (bmp oder ico) und Text enthält. Der Text soll unten und das Bild in der Mitte stehen. Es war mir jedoch bis jetzt nicht möglich dies zu erreichen. Mir wurde bis jetzt nur immer das Bild angezeigt.</p>
<p>Mit folgendem Code erstelle ich den Button:</p>
<pre><code class="language-cpp">hWndButton = CreateWindowEx(
    0,
    &quot;BUTTON&quot;,
    &quot;Test&quot;,
    WS_CHILD|WS_VISIBLE|BS_BITMAP|BS_TEXT|BS_BOTTOM,
    250,
    230,
    100,
    100,
    hWnd,
    (HMENU)IDB_BUTTON,
    (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE),
    NULL);
</code></pre>
<p>Ich hoffe, dass mir hier jemand weiterhelfen kann. Ich bin euch für jeden Tipp sehr dankbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/97478/bitmap-button</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 10:41:14 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/97478.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 11 Jan 2005 10:53:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bitmap-Button on Tue, 11 Jan 2005 10:53:26 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe folgendes Problem:<br />
Ich möchte einen Button, der ein Bild (bmp oder ico) und Text enthält. Der Text soll unten und das Bild in der Mitte stehen. Es war mir jedoch bis jetzt nicht möglich dies zu erreichen. Mir wurde bis jetzt nur immer das Bild angezeigt.</p>
<p>Mit folgendem Code erstelle ich den Button:</p>
<pre><code class="language-cpp">hWndButton = CreateWindowEx(
    0,
    &quot;BUTTON&quot;,
    &quot;Test&quot;,
    WS_CHILD|WS_VISIBLE|BS_BITMAP|BS_TEXT|BS_BOTTOM,
    250,
    230,
    100,
    100,
    hWnd,
    (HMENU)IDB_BUTTON,
    (HINSTANCE)GetWindowLong(hWnd, GWL_HINSTANCE),
    NULL);
</code></pre>
<p>Ich hoffe, dass mir hier jemand weiterhelfen kann. Ich bin euch für jeden Tipp sehr dankbar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/693080</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/693080</guid><dc:creator><![CDATA[Button]]></dc:creator><pubDate>Tue, 11 Jan 2005 10:53:26 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap-Button on Tue, 11 Jan 2005 12:52:12 GMT]]></title><description><![CDATA[<p>Da wirst du um das Selberzeichnen nicht drumrumkommen, fürchte ich. Ich habe es auch schon vergeblich probiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/693185</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/693185</guid><dc:creator><![CDATA[[[global:former_user]]]]></dc:creator><pubDate>Tue, 11 Jan 2005 12:52:12 GMT</pubDate></item></channel></rss>