<?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[Enter in Edit-Feld abfangen]]></title><description><![CDATA[<p>hi,</p>
<p>ich weiß, dass das bestimmt schon tausend mal gefragt wurde, aber ich kriegs einfach nicht gebacken:</p>
<p>Ich habe ein Edit-Feld und will, sofern Enter gedrück wird, dass etwas geschieht.</p>
<p>Allerdings ist mein Problem, dass ich keine WM_CHAR nachrichten erhalte. Ich wollte in der WndProc einfach WM_CHAR abfangen, sofern es von meinem Edit kommt, allerdings erhalte ich diese nachricht nicht.</p>
<p>Also hab ich mal das Edit-Fenster gesubclassed...und es kommt auch kein WM_CHAR. Woran kann das denn liegen?</p>
<p>MfG, Herr-Vorragend</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/114117/enter-in-edit-feld-abfangen</link><generator>RSS for Node</generator><lastBuildDate>Wed, 01 Jul 2026 21:16:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/114117.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 30 Jun 2005 09:54:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Enter in Edit-Feld abfangen on Thu, 30 Jun 2005 09:54:59 GMT]]></title><description><![CDATA[<p>hi,</p>
<p>ich weiß, dass das bestimmt schon tausend mal gefragt wurde, aber ich kriegs einfach nicht gebacken:</p>
<p>Ich habe ein Edit-Feld und will, sofern Enter gedrück wird, dass etwas geschieht.</p>
<p>Allerdings ist mein Problem, dass ich keine WM_CHAR nachrichten erhalte. Ich wollte in der WndProc einfach WM_CHAR abfangen, sofern es von meinem Edit kommt, allerdings erhalte ich diese nachricht nicht.</p>
<p>Also hab ich mal das Edit-Fenster gesubclassed...und es kommt auch kein WM_CHAR. Woran kann das denn liegen?</p>
<p>MfG, Herr-Vorragend</p>
]]></description><link>https://www.c-plusplus.net/forum/post/820444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/820444</guid><dc:creator><![CDATA[Herr-Vorragend]]></dc:creator><pubDate>Thu, 30 Jun 2005 09:54:59 GMT</pubDate></item><item><title><![CDATA[Reply to Enter in Edit-Feld abfangen on Thu, 30 Jun 2005 10:01:26 GMT]]></title><description><![CDATA[<p>Wie wärs, wenn du WM_KEYDOWN abfängst?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/820449</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/820449</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Thu, 30 Jun 2005 10:01:26 GMT</pubDate></item><item><title><![CDATA[Reply to Enter in Edit-Feld abfangen on Thu, 30 Jun 2005 10:13:00 GMT]]></title><description><![CDATA[<p>das ging vorhin auch nicht. aber jetzt hab ich solange rumgemacht, bis es geht, ich glaub ich hab bei SetWindowLong irgendwas vermasselt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/820457</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/820457</guid><dc:creator><![CDATA[Herr-Vorragend]]></dc:creator><pubDate>Thu, 30 Jun 2005 10:13:00 GMT</pubDate></item><item><title><![CDATA[Reply to Enter in Edit-Feld abfangen on Sat, 02 Jul 2005 14:57:43 GMT]]></title><description><![CDATA[<p>Bei mir hats folgendermaßen funktioniert:</p>
<pre><code>PrevWndProcEdit = SetWindowLongPtr (hwndEdit, GWLP_WNDPROC,(LONG_PTR) EditWndProc);

LRESULT CALLBACK EditWndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
	switch (message)
	{
	case WM_KEYDOWN:
		switch(wParam){
			case VK_RETURN:
			SendMessage(hWnd,WM_COMMAND,ID_SENDEN,NULL);
			break;
		}
		break;  

	}

	return CallWindowProc ((WNDPROC) PrevWndProcEdit, hwnd, message, wParam, lParam);
}
</code></pre>
<p>wobei ID_SENDEN zu einem Button gehört<br />
dort wird dann alles weiter verarbeitet</p>
]]></description><link>https://www.c-plusplus.net/forum/post/822176</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/822176</guid><dc:creator><![CDATA[linus]]></dc:creator><pubDate>Sat, 02 Jul 2005 14:57:43 GMT</pubDate></item></channel></rss>