<?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 auf Button ohne Style zu verlieren]]></title><description><![CDATA[<p>Wenn ich ein Bitmap bzw. Icon auf einen Button platziere, dann geht jedesmal der moderen XP Style verloren und der Button sieht aus wie unter Windows 95. Gibt es dazu ein Workaround oder mache ich einfach etwas falsch?</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/195137/icon-auf-button-ohne-style-zu-verlieren</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 02:13:37 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/195137.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 14 Oct 2007 17:20:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Icon auf Button ohne Style zu verlieren on Sun, 14 Oct 2007 17:20:41 GMT]]></title><description><![CDATA[<p>Wenn ich ein Bitmap bzw. Icon auf einen Button platziere, dann geht jedesmal der moderen XP Style verloren und der Button sieht aus wie unter Windows 95. Gibt es dazu ein Workaround oder mache ich einfach etwas falsch?</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1385060</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1385060</guid><dc:creator><![CDATA[crackseller]]></dc:creator><pubDate>Sun, 14 Oct 2007 17:20:41 GMT</pubDate></item><item><title><![CDATA[Reply to Icon auf Button ohne Style zu verlieren on Sun, 14 Oct 2007 23:38:33 GMT]]></title><description><![CDATA[<p>Weiß das echt keiner? Es muss doch gehen...</p>
<p>Hier mal mein code:</p>
<pre><code class="language-cpp">hButton1 = CreateWindow(WC_BUTTON, &quot;&quot;, WS_CHILD| WS_VISIBLE | BS_PUSHBUTTON | BS_ICON |BS_CENTER,
			rc.left+5, rc.top+5, 25, 25, hWnd, (HMENU)IDC_BUTTON1, 
			((LPCREATESTRUCT)lParam)-&gt;hInstance, NULL);

		hIcon = LoadIcon(((LPCREATESTRUCT)lParam)-&gt;hInstance, MAKEINTRESOURCE(IDI_ICON9));

		SendMessage(hButton1, BM_SETIMAGE, (WPARAM)IMAGE_ICON, (LPARAM)hIcon);
</code></pre>
<p>Das Problem ist, wie gesagt, dass er in dem Moment, wo ich die SendMessage sende und das Icon raufpacke, der XP-Look weg ist und zwar nur von diesem einen Button. Die Applikation selbst sieht noch schick aus... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1385262</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1385262</guid><dc:creator><![CDATA[crackseller]]></dc:creator><pubDate>Sun, 14 Oct 2007 23:38:33 GMT</pubDate></item></channel></rss>