<?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 Dialog und Messagebox]]></title><description><![CDATA[<p>Hi</p>
<p>Ich habe einen Dialog bei dem ich die Nachricht &quot;WM_ERASEBKGND&quot; selber bearbeite und zwar setz ich ein Bitmap als Hintergrund... geht auch alles wunderbar... wenn ich jetzt aber eine Messagebox anzeige und diese bewege, dann<br />
wird mein Hintergrund irgendwie nicht neu gezeichnet... man sieht die &quot;spuren&quot; der Messagebox auf dem Dialog... was muß da noch machen, damit sowas nicht passiert??</p>
<p>hier der code für WM_ERASEBKGND:</p>
<pre><code>hdc=(HDC)wParam;
GetClientRect(hwndDlg,&amp;r);
StretchDIBit(hdc,0,0,r.right,r.bottom,0,0,sizex,sizey,pBits,g_pbiLogoInfo,DIB_RGB_COLORS,SRCCOPY);
return TRUE;
</code></pre>
<p>kann mir da jemand weiterhelfen?</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/90383/problem-mit-dialog-und-messagebox</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 23:34:19 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/90383.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 28 Oct 2004 18:31:20 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem mit Dialog und Messagebox on Thu, 28 Oct 2004 18:31:20 GMT]]></title><description><![CDATA[<p>Hi</p>
<p>Ich habe einen Dialog bei dem ich die Nachricht &quot;WM_ERASEBKGND&quot; selber bearbeite und zwar setz ich ein Bitmap als Hintergrund... geht auch alles wunderbar... wenn ich jetzt aber eine Messagebox anzeige und diese bewege, dann<br />
wird mein Hintergrund irgendwie nicht neu gezeichnet... man sieht die &quot;spuren&quot; der Messagebox auf dem Dialog... was muß da noch machen, damit sowas nicht passiert??</p>
<p>hier der code für WM_ERASEBKGND:</p>
<pre><code>hdc=(HDC)wParam;
GetClientRect(hwndDlg,&amp;r);
StretchDIBit(hdc,0,0,r.right,r.bottom,0,0,sizex,sizey,pBits,g_pbiLogoInfo,DIB_RGB_COLORS,SRCCOPY);
return TRUE;
</code></pre>
<p>kann mir da jemand weiterhelfen?</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/639805</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/639805</guid><dc:creator><![CDATA[NadineB]]></dc:creator><pubDate>Thu, 28 Oct 2004 18:31:20 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Dialog und Messagebox on Thu, 28 Oct 2004 20:35:25 GMT]]></title><description><![CDATA[<p>Dafür ist die WM_PAINT</p>
<p>hab was rausgesucht:</p>
<pre><code class="language-cpp">PAINTSTRUCT ps;
		HDC hdc;
		case WM_PAINT:
		 hdc = BeginPaint (hwnd, &amp;ps);
		 // Hier das Bitmap neu zeichnen
		 EndPaint (hwnd, &amp;ps);
		 return (0);
		break;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/639925</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/639925</guid><dc:creator><![CDATA[joomoo]]></dc:creator><pubDate>Thu, 28 Oct 2004 20:35:25 GMT</pubDate></item><item><title><![CDATA[Reply to Problem mit Dialog und Messagebox on Thu, 28 Oct 2004 21:06:29 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>nee.. das funkt ja garnicht...dann ist alles grau.. weil ich will ja den hintergrund neu zeichen, zudem ist´s ja auch noch ein dialog</p>
<p>trotzdem mal danke dafür <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f60b.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_savoring_food"
      title=":yum:"
      alt="😋"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/639944</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/639944</guid><dc:creator><![CDATA[NadineB]]></dc:creator><pubDate>Thu, 28 Oct 2004 21:06:29 GMT</pubDate></item></channel></rss>