<?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[Bitmap zur Laufzeit aus Datei in PictureBox laden]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versuche einfach ein Bitmap aus einer Datei zur Laufzeit in einer PictureBox anzuzeigen. Leider funktioniert dies nicht. Hier der Code (steht in der OnPaint vom Dialog).</p>
<p>IDC_STATIC1 = ID PictureBox</p>
<pre><code class="language-cpp">CStatic* frame = (CStatic*) GetDlgItem(IDC_STATIC1);
CString csFilename = &quot;c:\\test.bmp&quot;;
frame-&gt;SetBitmap((HBITMAP)LoadImage(NULL,csFilename,IMAGE_BITMAP,0,0,LR_LOADFROMFILE|LR_CREATEDIBSECTION));
frame-&gt;RedrawWindow();
</code></pre>
<p>Wo ist hier der Fehler? Habe ich was vergessen oder ist das hier der völlig falsche Anastz?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/142127/bitmap-zur-laufzeit-aus-datei-in-picturebox-laden</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 22:38:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/142127.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 27 Mar 2006 23:52:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Bitmap zur Laufzeit aus Datei in PictureBox laden on Mon, 27 Mar 2006 23:52:42 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich versuche einfach ein Bitmap aus einer Datei zur Laufzeit in einer PictureBox anzuzeigen. Leider funktioniert dies nicht. Hier der Code (steht in der OnPaint vom Dialog).</p>
<p>IDC_STATIC1 = ID PictureBox</p>
<pre><code class="language-cpp">CStatic* frame = (CStatic*) GetDlgItem(IDC_STATIC1);
CString csFilename = &quot;c:\\test.bmp&quot;;
frame-&gt;SetBitmap((HBITMAP)LoadImage(NULL,csFilename,IMAGE_BITMAP,0,0,LR_LOADFROMFILE|LR_CREATEDIBSECTION));
frame-&gt;RedrawWindow();
</code></pre>
<p>Wo ist hier der Fehler? Habe ich was vergessen oder ist das hier der völlig falsche Anastz?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1025196</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1025196</guid><dc:creator><![CDATA[edm]]></dc:creator><pubDate>Mon, 27 Mar 2006 23:52:42 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap zur Laufzeit aus Datei in PictureBox laden on Tue, 28 Mar 2006 05:33:28 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Hier ein Lösungsansatz für dich:<br />
<a href="http://www.go4expert.com/forums/showthread.php?t=350" rel="nofollow">http://www.go4expert.com/forums/showthread.php?t=350</a></p>
<p>grüße</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1025221</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1025221</guid><dc:creator><![CDATA[David_pb]]></dc:creator><pubDate>Tue, 28 Mar 2006 05:33:28 GMT</pubDate></item><item><title><![CDATA[Reply to Bitmap zur Laufzeit aus Datei in PictureBox laden on Tue, 28 Mar 2006 10:29:16 GMT]]></title><description><![CDATA[<p>Danke. Funktioniert bestens. Ist wohl doch ein wenig komplizierter als ich gedacht habe <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /></p>
<p>Aber wenn man das so in einer Klasse implementiert, dann merkt man ja nichts weiter davon.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1025392</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1025392</guid><dc:creator><![CDATA[edm]]></dc:creator><pubDate>Tue, 28 Mar 2006 10:29:16 GMT</pubDate></item></channel></rss>