<?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[Fokus auf Editbox]]></title><description><![CDATA[<p>Hallo,<br />
Ich habe ein Problem :<br />
Ich kann eine Editbox nicht fokussieren.<br />
Mein jetziger Code:</p>
<pre><code class="language-cpp">SetFocus( GetDlgItem(hwndDlg, IDC_EDITBOX) );
</code></pre>
<p>Wo liegt der Fehler? Ich hab auch überprüft, ob GetDlgItem einen falschen Wert (NULL) zurückliefert : Wert ist gültig. Hab auch schon SetForegroundWindow probiert, gleiches Ergebnis.<br />
Kann mir jemand helfen?<br />
Falls es was bringt : SetFocus rufe ich bei der Notification WM_INITDIALOG auf (ich bin davon ausgegangen, dass es möglich ist)<br />
Danke schon mal im voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/129563/fokus-auf-editbox</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 06:58:54 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/129563.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 14 Dec 2005 15:54:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fokus auf Editbox on Wed, 14 Dec 2005 15:54:45 GMT]]></title><description><![CDATA[<p>Hallo,<br />
Ich habe ein Problem :<br />
Ich kann eine Editbox nicht fokussieren.<br />
Mein jetziger Code:</p>
<pre><code class="language-cpp">SetFocus( GetDlgItem(hwndDlg, IDC_EDITBOX) );
</code></pre>
<p>Wo liegt der Fehler? Ich hab auch überprüft, ob GetDlgItem einen falschen Wert (NULL) zurückliefert : Wert ist gültig. Hab auch schon SetForegroundWindow probiert, gleiches Ergebnis.<br />
Kann mir jemand helfen?<br />
Falls es was bringt : SetFocus rufe ich bei der Notification WM_INITDIALOG auf (ich bin davon ausgegangen, dass es möglich ist)<br />
Danke schon mal im voraus.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/942153</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/942153</guid><dc:creator><![CDATA[PaulW]]></dc:creator><pubDate>Wed, 14 Dec 2005 15:54:45 GMT</pubDate></item><item><title><![CDATA[Reply to Fokus auf Editbox on Wed, 14 Dec 2005 16:03:04 GMT]]></title><description><![CDATA[<p>Der Aufruf ist glaube ich zu früh...<br />
Aber warum machst Du es überhaupt so kompilziert? Setze einfach die Z-Order im Resoruce-Editor richtig, dann sollte das erste Control automatisch den Focus bekommen. Und wenn das Eingabefeld den Focus haben soll, dann mache diese einfach zum ersten Control!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/942159</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/942159</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Wed, 14 Dec 2005 16:03:04 GMT</pubDate></item><item><title><![CDATA[Reply to Fokus auf Editbox on Thu, 15 Dec 2005 11:14:50 GMT]]></title><description><![CDATA[<p>Danke erstmal für die Antwort <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":-)"
      alt="🙂"
    /><br />
Die Editbox hat die niedrigste ID-Nummer im Dialog, dennoch wird es nicht fokussiert (ausgenommen die Dialog-ID, die ist niedriger).<br />
Wie kann ich die Nachricht ein wenig später schicken? Über einen Timer würde es ja praktisch gehen, aber nicht ein wenig zu umständlich?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/942722</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/942722</guid><dc:creator><![CDATA[PaulW]]></dc:creator><pubDate>Thu, 15 Dec 2005 11:14:50 GMT</pubDate></item><item><title><![CDATA[Reply to Fokus auf Editbox on Thu, 15 Dec 2005 11:17:03 GMT]]></title><description><![CDATA[<p>Was redest du auf einmal von IDs?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/942724</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/942724</guid><dc:creator><![CDATA[~~~~~~~~~~~]]></dc:creator><pubDate>Thu, 15 Dec 2005 11:17:03 GMT</pubDate></item><item><title><![CDATA[Reply to Fokus auf Editbox on Thu, 15 Dec 2005 11:17:17 GMT]]></title><description><![CDATA[<p>Mit der ID hat das nichts zu tun, sondern mit der Z-Order!<br />
Im VC2003 Ressource-Editor kannst DU die ändern mit Menü: &quot;Format|Tab Order&quot;.<br />
In VC6 ist dieser Eintrag glaube ich im &quot;View&quot; Menü versteckt...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/942725</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/942725</guid><dc:creator><![CDATA[Jochen Kalmbach]]></dc:creator><pubDate>Thu, 15 Dec 2005 11:17:17 GMT</pubDate></item><item><title><![CDATA[Reply to Fokus auf Editbox on Thu, 15 Dec 2005 12:44:19 GMT]]></title><description><![CDATA[<p>Sorry, hab das damit irgendwie verbunden. Funzt jetzt auf jeden Fall.<br />
Falls es noch jemanden interessiert : Es hat bei mir erst geklappt, nachdem ich TRUE bei der WM_INITDIALOG Notification zurückgegeben habe (Wenn WM_INITDIALOG nicht abgefangen wird, funktioniert es nicht, bei mir zumindest nicht).<br />
Danke für die Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/942801</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/942801</guid><dc:creator><![CDATA[PaulW]]></dc:creator><pubDate>Thu, 15 Dec 2005 12:44:19 GMT</pubDate></item></channel></rss>