<?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[CBitmap nicht aus den Ressourcen laden]]></title><description><![CDATA[<p>Aloa,</p>
<p>ich würde gerne zur laufzeit ein bild in eine CBitmap-Klasse laden.<br />
Finde aber in der MSDN nur die .LoadBitmap( RESSOURCE_ID)</p>
<p>Kann mir jemand sagen wie ich das bild von Festplatte lade ?</p>
<p>vielen Dank im vorraus</p>
<p>volker</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/70167/cbitmap-nicht-aus-den-ressourcen-laden</link><generator>RSS for Node</generator><lastBuildDate>Fri, 01 May 2026 21:24:31 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/70167.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 05 Apr 2004 02:26:09 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to CBitmap nicht aus den Ressourcen laden on Mon, 05 Apr 2004 02:28:18 GMT]]></title><description><![CDATA[<p>Aloa,</p>
<p>ich würde gerne zur laufzeit ein bild in eine CBitmap-Klasse laden.<br />
Finde aber in der MSDN nur die .LoadBitmap( RESSOURCE_ID)</p>
<p>Kann mir jemand sagen wie ich das bild von Festplatte lade ?</p>
<p>vielen Dank im vorraus</p>
<p>volker</p>
]]></description><link>https://www.c-plusplus.net/forum/post/495103</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/495103</guid><dc:creator><![CDATA[excess]]></dc:creator><pubDate>Mon, 05 Apr 2004 02:28:18 GMT</pubDate></item><item><title><![CDATA[Reply to CBitmap nicht aus den Ressourcen laden on Mon, 05 Apr 2004 08:46:53 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">CString szFilename=myBMP.bmp&quot;
BITMAP bild_header;
CBitmap pic;
CDC imageDC; 
HBITMAP hBmp = (HBITMAP)::LoadImage(NULL,szFilename, IMAGE_BITMAP, 0, 0,
LR_LOADFROMFILE|LR_CREATEDIBSECTION);
pic.Attach(hBmp);
pic.GetBitmap(&amp;bild_header);

CWnd* wp = GetDlgItem(IDC_STATIC_...);
CDC *pDC = wp-&gt;GetDC();
imageDC.CreateCompatibleDC(pDC);
imageDC.SelectObject( &amp;rohrbild);
pDC-&gt;BitBlt(0, 0, bild_header.bmWidth, bild_header.bmHeight, &amp;imageDC, 0,
0, SRCCOPY);
imageDC.DeleteDC();
wp-&gt;ReleaseDC(pDC);
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/495183</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/495183</guid><dc:creator><![CDATA[Windalf]]></dc:creator><pubDate>Mon, 05 Apr 2004 08:46:53 GMT</pubDate></item><item><title><![CDATA[Reply to CBitmap nicht aus den Ressourcen laden on Mon, 05 Apr 2004 13:54:47 GMT]]></title><description><![CDATA[<p>cool.<br />
vielen dank!!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/495517</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/495517</guid><dc:creator><![CDATA[excess]]></dc:creator><pubDate>Mon, 05 Apr 2004 13:54:47 GMT</pubDate></item></channel></rss>