<?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[WM_PRINT - wie geht das?]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein Problem mit WM_PRINT.<br />
Lt. MSDN sollte WM_PRINT einen &quot;Screenshot&quot; eines Fensters zurückgeben. Habe also folgenden Code verwendet:</p>
<pre><code class="language-cpp">SendMessage(Form1-&gt;Handle, WM_PRINT, (LPARAM)Form1-&gt;Image1-&gt;Picture-&gt;Bitmap-&gt;Canvas-&gt;Handle, NULL);
</code></pre>
<p>Allerdings funktioniert das komischerweise nicht.<br />
Dann habe ich testweise ausprobiert:</p>
<pre><code class="language-cpp">Form1-&gt;Perform(WM_PRINT, (LPARAM)Form1-&gt;Image1-&gt;Picture-&gt;Bitmap-&gt;Canvas-&gt;Handle, NULL);
</code></pre>
<p>Aber auch das funktioniert nicht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
<p>Kann mir jemand einen Hinweis geben, was ich da falsch mache? Das Bitmap vom Image1 ist bereits gefüllt, hat also auch schon Width und Height...</p>
<p>(Die Möglichkeit, einen Screenshot mittels BitBlt kenne ich, möchte ich allerdings nicht verwenden, da WM_PRINT angeblich um einiges schneller sein muss, und meine Anwendung sehr zeitkritisch ist...)</p>
<p>tschüss<br />
Robert</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/105385/wm_print-wie-geht-das</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 14:10:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/105385.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 29 Mar 2005 20:20:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to WM_PRINT - wie geht das? on Tue, 29 Mar 2005 20:20:21 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe ein Problem mit WM_PRINT.<br />
Lt. MSDN sollte WM_PRINT einen &quot;Screenshot&quot; eines Fensters zurückgeben. Habe also folgenden Code verwendet:</p>
<pre><code class="language-cpp">SendMessage(Form1-&gt;Handle, WM_PRINT, (LPARAM)Form1-&gt;Image1-&gt;Picture-&gt;Bitmap-&gt;Canvas-&gt;Handle, NULL);
</code></pre>
<p>Allerdings funktioniert das komischerweise nicht.<br />
Dann habe ich testweise ausprobiert:</p>
<pre><code class="language-cpp">Form1-&gt;Perform(WM_PRINT, (LPARAM)Form1-&gt;Image1-&gt;Picture-&gt;Bitmap-&gt;Canvas-&gt;Handle, NULL);
</code></pre>
<p>Aber auch das funktioniert nicht. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
<p>Kann mir jemand einen Hinweis geben, was ich da falsch mache? Das Bitmap vom Image1 ist bereits gefüllt, hat also auch schon Width und Height...</p>
<p>(Die Möglichkeit, einen Screenshot mittels BitBlt kenne ich, möchte ich allerdings nicht verwenden, da WM_PRINT angeblich um einiges schneller sein muss, und meine Anwendung sehr zeitkritisch ist...)</p>
<p>tschüss<br />
Robert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/755281</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/755281</guid><dc:creator><![CDATA[rowisoft]]></dc:creator><pubDate>Tue, 29 Mar 2005 20:20:21 GMT</pubDate></item><item><title><![CDATA[Reply to WM_PRINT - wie geht das? on Wed, 30 Mar 2005 06:39:06 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>hat sich erledigt, so funktionierts:</p>
<pre><code class="language-cpp">SendMessage(Form1-&gt;Handle, WM_PRINT, (LPARAM)Form1-&gt;Image1-&gt;Picture-&gt;Bitmap-&gt;Canvas-&gt;Handle, PRF_CHILDREN | PRF_CLIENT | PRF_ERASEBKGND | PRF_NONCLIENT | PRF_OWNED);
</code></pre>
<p>Gruß,<br />
Robert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/755409</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/755409</guid><dc:creator><![CDATA[rowisoft]]></dc:creator><pubDate>Wed, 30 Mar 2005 06:39:06 GMT</pubDate></item><item><title><![CDATA[Reply to WM_PRINT - wie geht das? on Wed, 30 Mar 2005 06:58:13 GMT]]></title><description><![CDATA[<p>Tja... das hat man davon, wenn man einfach bei den Parametern die man nicht kennt &quot;NULL&quot; übergibt (o;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/755420</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/755420</guid><dc:creator><![CDATA[junix]]></dc:creator><pubDate>Wed, 30 Mar 2005 06:58:13 GMT</pubDate></item><item><title><![CDATA[Reply to WM_PRINT - wie geht das? on Wed, 30 Mar 2005 07:13:25 GMT]]></title><description><![CDATA[<p>Hehe... stimmt, funktioniert aber manchmal :p</p>
]]></description><link>https://www.c-plusplus.net/forum/post/755427</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/755427</guid><dc:creator><![CDATA[rowisoft]]></dc:creator><pubDate>Wed, 30 Mar 2005 07:13:25 GMT</pubDate></item></channel></rss>