<?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[Problem mit Ownerdrawn Button.]]></title><description><![CDATA[<p>Tach,<br />
ich habe mir nen Button erstellt den ich via Ownerdraw in der WM_DRAWITEM bearbeite, leider verliert der Button so diese Form als Knopf halt, sprich wenn ich mit der maus drauf klicke soll er versunken sein und wenn ich los lasse wieder hochkommen. aber nun ist er halt &quot;Aal glatt&quot;, wie stell ich das an dieses Effekt wieder herzustellen?</p>
<p>Gruß Tobi.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/206829/problem-mit-ownerdrawn-button</link><generator>RSS for Node</generator><lastBuildDate>Sun, 26 Apr 2026 03:40:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/206829.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 Feb 2008 13:57:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit Ownerdrawn Button. on Fri, 29 Feb 2008 13:57:37 GMT]]></title><description><![CDATA[<p>Tach,<br />
ich habe mir nen Button erstellt den ich via Ownerdraw in der WM_DRAWITEM bearbeite, leider verliert der Button so diese Form als Knopf halt, sprich wenn ich mit der maus drauf klicke soll er versunken sein und wenn ich los lasse wieder hochkommen. aber nun ist er halt &quot;Aal glatt&quot;, wie stell ich das an dieses Effekt wieder herzustellen?</p>
<p>Gruß Tobi.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1465488</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1465488</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Fri, 29 Feb 2008 13:57:37 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Ownerdrawn Button. on Fri, 29 Feb 2008 14:06:16 GMT]]></title><description><![CDATA[<p>Das Zeichnen musst Du, jenachdem welchen State der Button hat, vornehmen.<br />
Also 3D Rahmen Zeichnen, wenn der Button nicht nicht reingedrückt wird, ansonsten halt nicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1465503</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1465503</guid><dc:creator><![CDATA[Airdamn]]></dc:creator><pubDate>Fri, 29 Feb 2008 14:06:16 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Ownerdrawn Button. on Fri, 29 Feb 2008 14:42:39 GMT]]></title><description><![CDATA[<p>wie kann ich den Button status mit der LPDRAWITEMSTRUCT abfragen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1465534</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1465534</guid><dc:creator><![CDATA[T0bi]]></dc:creator><pubDate>Fri, 29 Feb 2008 14:42:39 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Ownerdrawn Button. on Fri, 29 Feb 2008 15:29:12 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">case WM_DRAWITEM:
    #define lpdis     (LPDRAWITEMSTRUCT) lParam;
    hdcMem = CreateCompatibleDC (lpdis-&gt;hDC);

    if (lpdis-&gt;itemState &amp; ODS_SELECTED)
	{
		if (lpdis-&gt;CtlID == BTN_CLOSE)
			SelectObject (hdcMem, LoadBitmap (g_hInst, MAKEINTRESOURCE (CLOSEP_BMP)));

		else if (lpdis-&gt;CtlID == BTN_TRAY)
			SelectObject (hdcMem, LoadBitmap (g_hInst, MAKEINTRESOURCE (TRAYP_BMP)));

		else if (lpdis-&gt;CtlID == BTN_MINIMIZE)
			SelectObject (hdcMem, LoadBitmap (g_hInst, MAKEINTRESOURCE (MINIP_BMP)));
	}
	else
	{
		if (lpdis-&gt;CtlID == BTN_CLOSE)
			SelectObject (hdcMem, LoadBitmap (g_hInst, MAKEINTRESOURCE (CLOSEN_BMP)));

		else if (lpdis-&gt;CtlID == BTN_TRAY)
			SelectObject (hdcMem, LoadBitmap (g_hInst, MAKEINTRESOURCE (TRAYN_BMP)));

		else if (lpdis-&gt;CtlID == BTN_MINIMIZE)
			SelectObject (hdcMem, LoadBitmap (g_hInst, MAKEINTRESOURCE (MININ_BMP)));
	}

    StretchBlt (lpdis-&gt;hDC, lpdis-&gt;rcItem.left, lpdis-&gt;rcItem.top, lpdis-&gt;rcItem.right - lpdis-&gt;rcItem.left, lpdis-&gt;rcItem.bottom - lpdis-&gt;rcItem.top, hdcMem, 0, 0, 20, 20, SRCCOPY);
    DeleteDC (hdcMem);
    #undef lpdis
return 0;
</code></pre>
<p>ist nur so als Beispiel...</p>
<p>EDIT: für die zukunft: sowas steht alles in der doku <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f44d.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--thumbs_up"
      title=":+1:"
      alt="👍"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1465567</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1465567</guid><dc:creator><![CDATA[Fake oder Echt]]></dc:creator><pubDate>Fri, 29 Feb 2008 15:29:12 GMT</pubDate></item></channel></rss>