<?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[Paste in Edit Control: was wird eingefügt?]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich möchte den Input in ein Edit Control abfangen. Beim Input über die Tastatur (einzelnes Zeichen) kann ich WM_CHAR abfangen, kein Problem.<br />
Leider empfängt das Edit-Control auch beim Paste-Vorgang zuerst ein WM_CHAR Event und erst danach den WM_PASTE Event.<br />
Wenn ich also WM_CHAR auswerte: woher weiß ich, dass es sich um einen Paste-Vorgang handelt und nicht um ein einzelnes Zeichen?</p>
<p>Danke + Gruß<br />
testalucida</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/242440/paste-in-edit-control-was-wird-eingefügt</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Apr 2026 16:07:09 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/242440.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 03 Jun 2009 19:01:52 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Paste in Edit Control: was wird eingefügt? on Wed, 03 Jun 2009 19:01:52 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich möchte den Input in ein Edit Control abfangen. Beim Input über die Tastatur (einzelnes Zeichen) kann ich WM_CHAR abfangen, kein Problem.<br />
Leider empfängt das Edit-Control auch beim Paste-Vorgang zuerst ein WM_CHAR Event und erst danach den WM_PASTE Event.<br />
Wenn ich also WM_CHAR auswerte: woher weiß ich, dass es sich um einen Paste-Vorgang handelt und nicht um ein einzelnes Zeichen?</p>
<p>Danke + Gruß<br />
testalucida</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1720639</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1720639</guid><dc:creator><![CDATA[winapinewbie]]></dc:creator><pubDate>Wed, 03 Jun 2009 19:01:52 GMT</pubDate></item><item><title><![CDATA[Reply to Paste in Edit Control: was wird eingefügt? on Wed, 03 Jun 2009 19:24:53 GMT]]></title><description><![CDATA[<p>Hallo wn,</p>
<pre><code>if (message=WM_CHAR and wparam='V' and keydown(Strg))
</code></pre>
<p>Oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1720648</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1720648</guid><dc:creator><![CDATA[sapero]]></dc:creator><pubDate>Wed, 03 Jun 2009 19:24:53 GMT</pubDate></item><item><title><![CDATA[Reply to Paste in Edit Control: was wird eingefügt? on Wed, 03 Jun 2009 20:00:52 GMT]]></title><description><![CDATA[<p>hallo sapero,</p>
<p>wparam ist zwar nicht 'V', sondern 0x16 - aber dein Tipp ist glaub ich goldrichtig: immer wenn beim WM_CHAR-Event wparam == 0x16, dann folgt ein WM_PASTE-Event und der Inhalt des Clipboards wird eingefügt.<br />
Danke!<br />
ciao<br />
winapinewbie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1720669</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1720669</guid><dc:creator><![CDATA[winapinewbie]]></dc:creator><pubDate>Wed, 03 Jun 2009 20:00:52 GMT</pubDate></item><item><title><![CDATA[Reply to Paste in Edit Control: was wird eingefügt? on Thu, 04 Jun 2009 06:12:21 GMT]]></title><description><![CDATA[<p>BTW:<br />
Ctrl+A = 0x01 'A'-' '<br />
Ctrl+B = 0x02 'B'-' '<br />
...<br />
Ctrl+V = 0x16 'V'-' '</p>
<p>Wenn in wParam ein Wert &lt; ' ' für eine WM_CHAR Nachricht ankommt, dann wurde die Strg Taste gedrückt plus Buchstabe!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1720760</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1720760</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Thu, 04 Jun 2009 06:12:21 GMT</pubDate></item><item><title><![CDATA[Reply to Paste in Edit Control: was wird eingefügt? on Thu, 04 Jun 2009 13:15:29 GMT]]></title><description><![CDATA[<p>Also ich hatte da auch mal das Problem, dass ich in einer Dialogbox die Änderungen im Editfeld in &quot;Echtzeit&quot; realisieren musste. Ich habe da im Dialog den Event WM_COMMAND-&gt;EN_CHANGE abgefangen, somit war es egal ob ich was aus der Zwischenablage hinein kopiert habe oder einfach im Feld einen Buchstaben gelöscht habe. Es wurde einfach jede Änderung abgefangen und von mir behandelt. Wäre für dich auch eine Möglichkeit das Problem anzugehen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1721062</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1721062</guid><dc:creator><![CDATA[*guggstdu*]]></dc:creator><pubDate>Thu, 04 Jun 2009 13:15:29 GMT</pubDate></item></channel></rss>