<?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 WM_PAINT]]></title><description><![CDATA[<p>Hi, ich zeichne mein komplettes Fenster selbst, ich benutze dazu die WM_PAINT Nachricht, wenn ich mein Fenster jetzt aber &quot;über die Bildschirmkante hinaus&quot; schiebe und dann wieder zurück wird der Bereich der &quot;auserhalb des Bildschirms&quot; war nicht neu gezeichnet! Steuerelemente wie z.B. Buttons welche ich mithilfe von WM_DRAWITEM zeichne und die auch in besagtem Breich liegen werden allerdings korrekt dargestellt.</p>
<p>Wie kann ich diesem Problem Herr werden?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/201070/problem-mit-wm_paint</link><generator>RSS for Node</generator><lastBuildDate>Tue, 28 Apr 2026 06:55:18 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/201070.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 23 Dec 2007 20:26:31 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to problem mit WM_PAINT on Sun, 23 Dec 2007 20:26:31 GMT]]></title><description><![CDATA[<p>Hi, ich zeichne mein komplettes Fenster selbst, ich benutze dazu die WM_PAINT Nachricht, wenn ich mein Fenster jetzt aber &quot;über die Bildschirmkante hinaus&quot; schiebe und dann wieder zurück wird der Bereich der &quot;auserhalb des Bildschirms&quot; war nicht neu gezeichnet! Steuerelemente wie z.B. Buttons welche ich mithilfe von WM_DRAWITEM zeichne und die auch in besagtem Breich liegen werden allerdings korrekt dargestellt.</p>
<p>Wie kann ich diesem Problem Herr werden?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1425361</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1425361</guid><dc:creator><![CDATA[api_user]]></dc:creator><pubDate>Sun, 23 Dec 2007 20:26:31 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit WM_PAINT on Mon, 24 Dec 2007 01:01:33 GMT]]></title><description><![CDATA[<p>code^^ bitte ohne gehts denk ich mal nicht Gruß Chris</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1425476</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1425476</guid><dc:creator><![CDATA[Foxx90]]></dc:creator><pubDate>Mon, 24 Dec 2007 01:01:33 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit WM_PAINT on Mon, 24 Dec 2007 11:31:37 GMT]]></title><description><![CDATA[<p>Mein Code sieht folgendermaßen aus:</p>
<pre><code class="language-cpp">case WM_PAINT:
        {
        char		text[500];
            PAINTSTRUCT ps;
            HGDIOBJ		old_brush	= NULL;
            HGDIOBJ		old_pen		= NULL;
            HGDIOBJ		old_font	= NULL;
            HDC			hDC			= BeginPaint(hwnd, &amp;ps);
            RECT		r;

            r = ps.rcPaint;

            // Client-Bereich
            old_pen		= SelectObject(hDC, p_wnd_border);
            old_brush	= SelectObject(hDC, b_wnd_bkg);

            Rectangle(hDC, 0, 0, r.right - r.left, r.bottom - r.top);

            old_brush	= SelectObject(hDC, (HBRUSH)GetStockObject(BLACK_BRUSH));
            Rectangle(hDC, 4, 26, r.right - r.left - 5, r.bottom - r.top - 5);
            DeleteObject(SelectObject(hDC, old_brush));
            SelectObject(hDC, old_pen);

            // Titelleiste
           		old_brush = SelectObject(hDC, b_headline);

                Rectangle(hDC, 2, 2, (r.right - r.left) - 2, 22);

                // Text zeichnen:
                GetWindowText(hwnd, text, 500);
                old_font = SelectObject(hDC, f_titel);
                SetBkMode(hDC, TRANSPARENT);		// Hintergrund des Textes auf Transparent schalten
                SetTextColor(hDC, RGB(255, 255, 255));           

                TextOut(hDC, 24, 1, text, strlen(text));

                SelectObject(hDC, old_font);
                SelectObject(hDC, old_brush);

            EndPaint(hwnd, &amp;ps);
        } 
        break;
</code></pre>
<p>Alles funktioniert bestens nur oben genannter Fehler tritt auf!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1425565</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1425565</guid><dc:creator><![CDATA[api_user]]></dc:creator><pubDate>Mon, 24 Dec 2007 11:31:37 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit WM_PAINT on Mon, 24 Dec 2007 23:54:19 GMT]]></title><description><![CDATA[<p>Hast du bei der WNDCLASS bzw. WNDCLASSEX auch CS_VREDRAW und CS_HREDRAW angegeben?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1425768</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1425768</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Mon, 24 Dec 2007 23:54:19 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit WM_PAINT on Thu, 27 Dec 2007 16:19:42 GMT]]></title><description><![CDATA[<p>Ja hab ich das hilft ned!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1426899</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1426899</guid><dc:creator><![CDATA[api_user]]></dc:creator><pubDate>Thu, 27 Dec 2007 16:19:42 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit WM_PAINT on Thu, 27 Dec 2007 16:56:56 GMT]]></title><description><![CDATA[<p>Das kann nicht gehen, weil Du Dein Rectanngle immer nur links oben in der Ecke zeichnest an den Koordnaten 0,0. Die Koordinaten des Paint RECTs können jedoch an anderen Ursprüngen liegen!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1426915</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1426915</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 27 Dec 2007 16:56:56 GMT</pubDate></item><item><title><![CDATA[Reply to problem mit WM_PAINT on Thu, 27 Dec 2007 16:58:11 GMT]]></title><description><![CDATA[<p>BTW: Warum zeichnest Du Deinen Hintergrund in WM_PAINT und nicht in WM_ERASEBKGND.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1426917</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1426917</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 27 Dec 2007 16:58:11 GMT</pubDate></item></channel></rss>