<?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[herausfinden ob steuerelement aktiv ist.]]></title><description><![CDATA[<p>Hallo,<br />
ich habe einen Dialog als ressource eingebunden.<br />
dieser Dialog hat eine Edit control.<br />
Wie kann ich im quellcode feststellen ob diese grade aktiv ist bzw ob sich der cursor grade darin befindet? Ich habs schon versucht mit GetDlgitem also handle holen und dann vergleichen mit dem Handle von GetFocus aber das hat nicht funktioniert.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/221564/herausfinden-ob-steuerelement-aktiv-ist</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 00:43:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/221564.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 31 Aug 2008 16:52:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to herausfinden ob steuerelement aktiv ist. on Sun, 31 Aug 2008 16:52:53 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich habe einen Dialog als ressource eingebunden.<br />
dieser Dialog hat eine Edit control.<br />
Wie kann ich im quellcode feststellen ob diese grade aktiv ist bzw ob sich der cursor grade darin befindet? Ich habs schon versucht mit GetDlgitem also handle holen und dann vergleichen mit dem Handle von GetFocus aber das hat nicht funktioniert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1574317</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1574317</guid><dc:creator><![CDATA[MARcUsned]]></dc:creator><pubDate>Sun, 31 Aug 2008 16:52:53 GMT</pubDate></item><item><title><![CDATA[Reply to herausfinden ob steuerelement aktiv ist. on Sun, 31 Aug 2008 16:58:34 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">static HWND hDlg = FindWindow(0, &quot;name&quot;);
	static HWND hwndEdit1 = GetDlgItem(hDlg, IDC_EDIT1);
	while(1)
	{
	if(GetAsyncKeyState(VK_RETURN) &amp;&amp; hwndEdit1 == GetFocus())
		SendMessage(hDlg, WM_COMMAND, IDC_BUTTON1, 0);
	}
</code></pre>
<p>also so in der art hab ich es versucht</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1574320</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1574320</guid><dc:creator><![CDATA[MARcUsned]]></dc:creator><pubDate>Sun, 31 Aug 2008 16:58:34 GMT</pubDate></item><item><title><![CDATA[Reply to herausfinden ob steuerelement aktiv ist. on Wed, 03 Sep 2008 12:20:40 GMT]]></title><description><![CDATA[<p>vielleicht mit:</p>
<p><a href="http://msdn.microsoft.com/de-de/library/bb761709(en-us,VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/de-de/library/bb761709(en-us,VS.85).aspx</a></p>
<p>könnte so funktioniere.. bin mir aber nicht 100% sicher..</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1575855</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1575855</guid><dc:creator><![CDATA[mRXXo]]></dc:creator><pubDate>Wed, 03 Sep 2008 12:20:40 GMT</pubDate></item><item><title><![CDATA[Reply to herausfinden ob steuerelement aktiv ist. on Wed, 03 Sep 2008 20:01:25 GMT]]></title><description><![CDATA[<p>Wie soll dieser Code funktionieren? Hier wird keine Messageloop abgearbeitet!<br />
Was meinst Du mit aktiv?<br />
GetFOcus liefert Dir das Fenster, dass den Eingabefokus hat. Innerhalb des Threads gibt es dennoch ein aktives Fenster, dass ist das Toplevel Fenster, dass im Vordergrund liegt (GetActiveWindow).</p>
<p>Achtung: Sowohl aktives Fenster als auch Fokus sind threadlokale Daten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1576106</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1576106</guid><dc:creator><![CDATA[Martin Richter]]></dc:creator><pubDate>Wed, 03 Sep 2008 20:01:25 GMT</pubDate></item></channel></rss>