<?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[HDC einer Bitmap]]></title><description><![CDATA[<p>Ganz kurz:<br />
Wie kriege ich die HDC einer Bitmap Datei?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/80499/hdc-einer-bitmap</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 08:17:36 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/80499.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 21 Jul 2004 18:22:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HDC einer Bitmap on Wed, 21 Jul 2004 18:22:56 GMT]]></title><description><![CDATA[<p>Ganz kurz:<br />
Wie kriege ich die HDC einer Bitmap Datei?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565429</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565429</guid><dc:creator><![CDATA[The_incredible_Guest]]></dc:creator><pubDate>Wed, 21 Jul 2004 18:22:56 GMT</pubDate></item><item><title><![CDATA[Reply to HDC einer Bitmap on Wed, 21 Jul 2004 18:39:34 GMT]]></title><description><![CDATA[<blockquote>
<p>Wie kriege ich die HDC einer Bitmap Datei?</p>
</blockquote>
<p>Hä?</p>
<p>Die Frage ist im MFC Forum wohl besser aufgehoben, falls du Device Context meinst. Deine Angabe ist aber etwas dürftig. Ich kann mir darunter leider nichts vorstellen. Was genau möchtest du machen?</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565439</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565439</guid><dc:creator><![CDATA[you]]></dc:creator><pubDate>Wed, 21 Jul 2004 18:39:34 GMT</pubDate></item><item><title><![CDATA[Reply to HDC einer Bitmap on Wed, 21 Jul 2004 18:41:42 GMT]]></title><description><![CDATA[<p>Dieser Thread wurde von Moderator/in <a href="http://www.c-plusplus.net/forum/profile.php?mode=viewprofile&amp;u=403" rel="nofollow">HumeSikkins</a> aus dem Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=15" rel="nofollow">C++</a> in das Forum <a href="http://www.c-plusplus.net/forum/viewforum.php?f=4" rel="nofollow">WinAPI</a> verschoben.</p>
<p>Im Zweifelsfall bitte auch folgende Hinweise beachten:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39405" rel="nofollow">C/C++ Forum :: FAQ - Sonstiges :: Wohin mit meiner Frage?</a></p>
<p><em>Dieses Posting wurde automatisch erzeugt.</em></p>
]]></description><link>https://www.c-plusplus.net/forum/post/565441</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565441</guid><dc:creator><![CDATA[C++ Forumbot]]></dc:creator><pubDate>Wed, 21 Jul 2004 18:41:42 GMT</pubDate></item><item><title><![CDATA[Reply to HDC einer Bitmap on Wed, 21 Jul 2004 18:45:08 GMT]]></title><description><![CDATA[<p>Ich weiß selber nicht was ich mir darunter vorstellen soll :&lt;<br />
Ich habe eine Frage gepostet wie ich eine BMP auf den Bildschirm kriege und dann die Antwort gekriegt dass ich dazu BitBlt und die HDC des Bildes sowie die des Fensters zu nehmen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565445</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565445</guid><dc:creator><![CDATA[The_incredible_Guest]]></dc:creator><pubDate>Wed, 21 Jul 2004 18:45:08 GMT</pubDate></item><item><title><![CDATA[Reply to HDC einer Bitmap on Wed, 21 Jul 2004 18:48:47 GMT]]></title><description><![CDATA[<p>Mein bisheriger Anlaufversuch(ohne Erfolg):<br />
HDC hdc;<br />
HDC hdc2;<br />
hdc = GetDC(hwnd);// hwnd vom Fenster</p>
<p>hdc2 = (HDC)LoadImage(hI, &quot;Hier habe ich den Pfad eingegeben&quot;, IMAGE_BITMAP,0,0, LR_DEFAULTSIZE);</p>
<p>try<br />
{<br />
BitBlt(hdc2, 200,200,200,200, hdc,200,200,DSTINVERT);<br />
}<br />
catch(...)<br />
{<br />
MessageBox(hwnd, &quot;error&quot;, &quot;error&quot;, MB_OK);<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565448</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565448</guid><dc:creator><![CDATA[The_incredible_Guest]]></dc:creator><pubDate>Wed, 21 Jul 2004 18:48:47 GMT</pubDate></item><item><title><![CDATA[Reply to HDC einer Bitmap on Wed, 21 Jul 2004 18:54:50 GMT]]></title><description><![CDATA[<p>Ich kann dir erst morgen früh genau sagen wie's geht. Ich weiss es nicht auswendig. Folgender Link dürfte dir weiterhelfen:<br />
<a href="http://www.c-plusplus.net/forum/viewtopic.php?t=79655&amp;start=0" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=79655&amp;start=0</a></p>
<p>Aber es gibt genug andere User, die sich mit diesem Thema beschäftigt haben..<br />
Ich nehme an du benutzt VC++ und möchtest mit MFC ein Bitmap anzeigen, oder?</p>
<p>MfG</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565451</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565451</guid><dc:creator><![CDATA[you]]></dc:creator><pubDate>Wed, 21 Jul 2004 18:54:50 GMT</pubDate></item><item><title><![CDATA[Reply to HDC einer Bitmap on Wed, 21 Jul 2004 20:30:51 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">HDC hdc;
HDC hdc2;
HBITMAP bmp;

hdc = GetDC(hwnd);// DC des Fensters
hdc2=CreateCompatibleDC(NULL); // Ein DC mit denselben Eigenschaften wie der DC des Desktops

// Bitmap laden:
bmp = (HBITMAP)LoadImage(hI, &quot;Hier habe ich den Pfad eingegeben&quot;, IMAGE_BITMAP,0,0, LR_DEFAULTSIZE);

// Bitmap mit temporärem hdc2 verbinden:
SelectObject(hdc2,bmp);

// hdc2 (verbunden mit dem bild) in den DC des Fensters kopieren:
BitBlt(hdc,0,0,breite,hoehe,hdc2,0,0,SRCCOPY);
</code></pre>
<p>...hier fehlen noch Aufräumarbeiten und Rückgabewertprüfung...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565499</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565499</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Wed, 21 Jul 2004 20:30:51 GMT</pubDate></item><item><title><![CDATA[Reply to HDC einer Bitmap on Thu, 22 Jul 2004 06:54:20 GMT]]></title><description><![CDATA[<p>tnx<br />
Obs klappt habe ich noch nicht probiert ansonsten poste ich nochmal.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565600</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565600</guid><dc:creator><![CDATA[The_incredible_Guest]]></dc:creator><pubDate>Thu, 22 Jul 2004 06:54:20 GMT</pubDate></item><item><title><![CDATA[Reply to HDC einer Bitmap on Thu, 22 Jul 2004 07:27:33 GMT]]></title><description><![CDATA[<p>Irgendwie klappt es immernoch nicht. Klappt es denn bei jemand anderem?<br />
Vielleicht liegt es dann ja auch an meiner Bitmap...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565627</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565627</guid><dc:creator><![CDATA[The_incredible_Guest]]></dc:creator><pubDate>Thu, 22 Jul 2004 07:27:33 GMT</pubDate></item><item><title><![CDATA[Reply to HDC einer Bitmap on Thu, 22 Jul 2004 11:33:06 GMT]]></title><description><![CDATA[<p>Hast Du mal die Rückgabewerte geprüft ? - Ob der die Bitmap z.B. überhaupt geladen hat ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/565930</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/565930</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Thu, 22 Jul 2004 11:33:06 GMT</pubDate></item><item><title><![CDATA[Reply to HDC einer Bitmap on Thu, 22 Jul 2004 16:44:12 GMT]]></title><description><![CDATA[<p>Wenn man eine Datei des Typs HBITMAP anzeigen kann werde ich es Testen. Ich bin in WINAPI Programmierung noch Anfänger und weiß nicht viel über den Typ HANDLE.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/566253</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/566253</guid><dc:creator><![CDATA[The_incredible_Guest]]></dc:creator><pubDate>Thu, 22 Jul 2004 16:44:12 GMT</pubDate></item><item><title><![CDATA[Reply to HDC einer Bitmap on Thu, 22 Jul 2004 16:46:58 GMT]]></title><description><![CDATA[<p>The_incredible_Guest schrieb:</p>
<blockquote>
<p>Wenn man eine Datei des Typs HBITMAP anzeigen kann werde ich es Testen.</p>
</blockquote>
<p>Ich meinte natürlich Variable und nicht Datei</p>
]]></description><link>https://www.c-plusplus.net/forum/post/566256</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/566256</guid><dc:creator><![CDATA[The_incredible_Guest]]></dc:creator><pubDate>Thu, 22 Jul 2004 16:46:58 GMT</pubDate></item><item><title><![CDATA[Reply to HDC einer Bitmap on Thu, 22 Jul 2004 16:58:59 GMT]]></title><description><![CDATA[<p>Ich habe das Problem gelöst:<br />
Um etwas auf den Bildschirm zu bringen muss die Nachricht WM_PAINT abgeschickt werden. Ich habe meinen Code jedoch im glauben dass das Fenster immer aktuell ist in WinMain geschrieben.(typischer Anfängerfehler würde ich meinen)<br />
Ich habe es bemerkt als ich wie gewohnt TextOut aufgerufen habe aber kein Text erschien. Sofort leuchtete mir ein: Ohne WM_PAINT Nachricht kein Bild.(Schließlich muss das Fenster ja neu gezeichnet werden)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/566267</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/566267</guid><dc:creator><![CDATA[The_incredible_Guest]]></dc:creator><pubDate>Thu, 22 Jul 2004 16:58:59 GMT</pubDate></item></channel></rss>