<?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[Skinned border]]></title><description><![CDATA[<p>Hallo *,<br />
ich habe folgendes Problem. Ich will &quot;border&quot; und &quot;caption&quot; meines Fensters selbst zeichnen. Dazu habe ich folgenden Code zusammengebaut bzw ergoogelt.<br />
Leider bekomme ich nichts zu sehen von dem Rand den ich gezeichnet habe und wenn ich das Fenster minimiere und dann wieder maximiere wird sogar der normale Rand gezeichnet.<br />
Hat jemand eine Idee wie man sowas richtig macht?</p>
<p>Danke und Gruss<br />
adapto</p>
<pre><code class="language-cpp">case WM_NCPAINT:
		HDC hDC;
		HBRUSH hBrush;
		RECT mainRC;

		hDC = GetDCEx(hWnd, (HRGN)wParam, DCX_WINDOW);

		GetWindowRect(hWnd, &amp;mainRC);
		hBrush = CreateSolidBrush(RGB(0x00, 0x00, 0x00));
		FrameRect(hDC, &amp;mainRC, hBrush);
		FillRect(hDC, &amp;mainRC, hBrush);

		ReleaseDC(hWnd, hDC);

		return TRUE;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/174992/skinned-border</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 13:23:17 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/174992.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Mar 2007 03:32:49 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Skinned border on Tue, 06 Mar 2007 03:32:49 GMT]]></title><description><![CDATA[<p>Hallo *,<br />
ich habe folgendes Problem. Ich will &quot;border&quot; und &quot;caption&quot; meines Fensters selbst zeichnen. Dazu habe ich folgenden Code zusammengebaut bzw ergoogelt.<br />
Leider bekomme ich nichts zu sehen von dem Rand den ich gezeichnet habe und wenn ich das Fenster minimiere und dann wieder maximiere wird sogar der normale Rand gezeichnet.<br />
Hat jemand eine Idee wie man sowas richtig macht?</p>
<p>Danke und Gruss<br />
adapto</p>
<pre><code class="language-cpp">case WM_NCPAINT:
		HDC hDC;
		HBRUSH hBrush;
		RECT mainRC;

		hDC = GetDCEx(hWnd, (HRGN)wParam, DCX_WINDOW);

		GetWindowRect(hWnd, &amp;mainRC);
		hBrush = CreateSolidBrush(RGB(0x00, 0x00, 0x00));
		FrameRect(hDC, &amp;mainRC, hBrush);
		FillRect(hDC, &amp;mainRC, hBrush);

		ReleaseDC(hWnd, hDC);

		return TRUE;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1239979</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1239979</guid><dc:creator><![CDATA[adapto]]></dc:creator><pubDate>Tue, 06 Mar 2007 03:32:49 GMT</pubDate></item><item><title><![CDATA[Reply to Skinned border on Tue, 06 Mar 2007 07:41:16 GMT]]></title><description><![CDATA[<p>Wie so oft! RTFM (Read the fine MSDN)</p>
<p><a href="http://msdn2.microsoft.com/en-us/ms534905.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/ms534905.aspx</a><br />
Zitat:<br />
Return Values<br />
An application returns zero if it processes this message.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1240005</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1240005</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 06 Mar 2007 07:41:16 GMT</pubDate></item><item><title><![CDATA[Reply to Skinned border on Tue, 06 Mar 2007 09:43:08 GMT]]></title><description><![CDATA[<blockquote>
<p>Return Values<br />
An application returns zero if it processes this message.</p>
</blockquote>
<p>Ja, das habe ich vorher auch stets so gehandhabt, aber dann wird nur die Windows eigene Umrandung gezeichnet. Von meinem &quot;FrameRect&quot; ist leider nichts zu sehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1240075</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1240075</guid><dc:creator><![CDATA[_adapto]]></dc:creator><pubDate>Tue, 06 Mar 2007 09:43:08 GMT</pubDate></item><item><title><![CDATA[Reply to Skinned border on Tue, 06 Mar 2007 11:01:03 GMT]]></title><description><![CDATA[<p>DCX_INTERSECTRGN ist nicht gesetzt. Ansonsten schau Dir Beispiele bei <a href="http://www.codeproject.com" rel="nofollow">www.codeproject.com</a> an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1240139</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1240139</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Tue, 06 Mar 2007 11:01:03 GMT</pubDate></item><item><title><![CDATA[Reply to Skinned border on Tue, 06 Mar 2007 11:16:04 GMT]]></title><description><![CDATA[<blockquote>
<p>DCX_INTERSECTRGN ist nicht gesetzt.</p>
</blockquote>
<p>Ja, damit habe ich auch schon herumgetestet. Hat leider nichts gebracht.</p>
<blockquote>
<p>Ansonsten schau Dir Beispiele bei <a href="http://www.codeproject.com" rel="nofollow">www.codeproject.com</a> an.</p>
</blockquote>
<p>Leider kann ich zu diesem Thema dort kein passendes finden. Habe gestern den ganzen Tag mit google und co. verbracht.</p>
<p>Trotzdem danke. Gruss adapto</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1240149</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1240149</guid><dc:creator><![CDATA[adapto]]></dc:creator><pubDate>Tue, 06 Mar 2007 11:16:04 GMT</pubDate></item></channel></rss>