<?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[Laden eines externen Pictures.. Bug bei BMP und wie JPG?]]></title><description><![CDATA[<p>Hallo,</p>
<p>mit folgendem Code kann ich ein Bitmap in meine Anwendung einbinden:</p>
<pre><code class="language-cpp">case WM_PAINT:
{
HBITMAP hbitmap = (HBITMAP)LoadImage(GetModuleHandle(NULL),&quot;bild.bmp&quot;,IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
HDC hdc = GetDC(hDlg); 
HDC image_dc = CreateCompatibleDC(hdc);
SelectObject(image_dc,hbitmap);
BitBlt(hdc,50,50,432,424,image_dc,0,0,SRCCOPY);
DeleteObject(hbitmap); 
ReleaseDC(hDlg, hdc); 
DeleteDC(image_dc);
}break;
</code></pre>
<p>Allerdings verschwindet das Bild, wenn meine Anwendung gestartet wird und ich daraufhin ein anderes Fenster einer anderen Anwendung von der Taskleiste aus Aktiviere und wieder Minimiere.</p>
<p>Des weiteren würde mich noch Interessieren, ob (und wenn ja wie) man ein JPG Bild anstelle des Bitmaps einbinden kann.</p>
<p>Gruß<br />
Florian</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/140639/laden-eines-externen-pictures-bug-bei-bmp-und-wie-jpg</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 03:01:58 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/140639.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 16 Mar 2006 11:34:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Laden eines externen Pictures.. Bug bei BMP und wie JPG? on Thu, 16 Mar 2006 11:35:34 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>mit folgendem Code kann ich ein Bitmap in meine Anwendung einbinden:</p>
<pre><code class="language-cpp">case WM_PAINT:
{
HBITMAP hbitmap = (HBITMAP)LoadImage(GetModuleHandle(NULL),&quot;bild.bmp&quot;,IMAGE_BITMAP,0,0,LR_LOADFROMFILE);
HDC hdc = GetDC(hDlg); 
HDC image_dc = CreateCompatibleDC(hdc);
SelectObject(image_dc,hbitmap);
BitBlt(hdc,50,50,432,424,image_dc,0,0,SRCCOPY);
DeleteObject(hbitmap); 
ReleaseDC(hDlg, hdc); 
DeleteDC(image_dc);
}break;
</code></pre>
<p>Allerdings verschwindet das Bild, wenn meine Anwendung gestartet wird und ich daraufhin ein anderes Fenster einer anderen Anwendung von der Taskleiste aus Aktiviere und wieder Minimiere.</p>
<p>Des weiteren würde mich noch Interessieren, ob (und wenn ja wie) man ein JPG Bild anstelle des Bitmaps einbinden kann.</p>
<p>Gruß<br />
Florian</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017419</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017419</guid><dc:creator><![CDATA[C++ Programmierer]]></dc:creator><pubDate>Thu, 16 Mar 2006 11:35:34 GMT</pubDate></item><item><title><![CDATA[Reply to Laden eines externen Pictures.. Bug bei BMP und wie JPG? on Thu, 16 Mar 2006 11:38:17 GMT]]></title><description><![CDATA[<p>BeginPaint/EndPaint</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017421</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017421</guid><dc:creator><![CDATA[.m]]></dc:creator><pubDate>Thu, 16 Mar 2006 11:38:17 GMT</pubDate></item><item><title><![CDATA[Reply to Laden eines externen Pictures.. Bug bei BMP und wie JPG? on Thu, 16 Mar 2006 11:58:29 GMT]]></title><description><![CDATA[<p>C++ Programmierer schrieb:</p>
<blockquote>
<p>Des weiteren würde mich noch Interessieren, ob (und wenn ja wie) man ein JPG Bild anstelle des Bitmaps einbinden kann.</p>
</blockquote>
<p><a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-39384.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-39384.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017430</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017430</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Thu, 16 Mar 2006 11:58:29 GMT</pubDate></item><item><title><![CDATA[Reply to Laden eines externen Pictures.. Bug bei BMP und wie JPG? on Thu, 16 Mar 2006 12:00:57 GMT]]></title><description><![CDATA[<p>Besser mit GDI+.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1017432</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1017432</guid><dc:creator><![CDATA[.m]]></dc:creator><pubDate>Thu, 16 Mar 2006 12:00:57 GMT</pubDate></item></channel></rss>