<?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[Handle anhand von Fenster ID ermitteln?]]></title><description><![CDATA[<p>huhu,</p>
<p>habe hier im Forum gelesen, das wenn ich die ID eine komponente habe,<br />
das ist daraus mittels getdlgitem das handle der komponente bekomme.</p>
<p>jetzt habe ich mit hilfe von winspektor die id 000303B6<br />
für ein programmfenster bekommen.</p>
<p>wie muss mein c++ code jetzt aussehen, das ich das handle bekomme?<br />
grrr, hab NULL plan, da ich noch nie mit winapi gearbeitet habe.</p>
<p>die windows.h, habe ich includiert. <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/topic/96616/handle-anhand-von-fenster-id-ermitteln</link><generator>RSS for Node</generator><lastBuildDate>Mon, 27 Apr 2026 04:05:40 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/96616.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 03 Jan 2005 18:33:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Handle anhand von Fenster ID ermitteln? on Mon, 03 Jan 2005 18:33:44 GMT]]></title><description><![CDATA[<p>huhu,</p>
<p>habe hier im Forum gelesen, das wenn ich die ID eine komponente habe,<br />
das ist daraus mittels getdlgitem das handle der komponente bekomme.</p>
<p>jetzt habe ich mit hilfe von winspektor die id 000303B6<br />
für ein programmfenster bekommen.</p>
<p>wie muss mein c++ code jetzt aussehen, das ich das handle bekomme?<br />
grrr, hab NULL plan, da ich noch nie mit winapi gearbeitet habe.</p>
<p>die windows.h, habe ich includiert. <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/685988</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/685988</guid><dc:creator><![CDATA[frieda]]></dc:creator><pubDate>Mon, 03 Jan 2005 18:33:44 GMT</pubDate></item><item><title><![CDATA[Reply to Handle anhand von Fenster ID ermitteln? on Mon, 03 Jan 2005 18:37:41 GMT]]></title><description><![CDATA[<p>wennst auf aktiven window das handle bekommen willst machs mit</p>
<pre><code class="language-cpp">hwnd = GetForegroundWindow();
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/685993</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/685993</guid><dc:creator><![CDATA[spjoe]]></dc:creator><pubDate>Mon, 03 Jan 2005 18:37:41 GMT</pubDate></item><item><title><![CDATA[Reply to Handle anhand von Fenster ID ermitteln? on Mon, 03 Jan 2005 18:42:37 GMT]]></title><description><![CDATA[<p>ich bekomme jetzt aber immer nur das handle meines eigenen fensters,<br />
oder ?</p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
  HWND MeinHandle = GetForegroundWindow();
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/685997</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/685997</guid><dc:creator><![CDATA[frieda]]></dc:creator><pubDate>Mon, 03 Jan 2005 18:42:37 GMT</pubDate></item><item><title><![CDATA[Reply to Handle anhand von Fenster ID ermitteln? on Mon, 03 Jan 2005 18:46:21 GMT]]></title><description><![CDATA[<p>diese frage, kann ich mir wohl mit ja beantworten <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
<pre><code class="language-cpp">void __fastcall TForm1::Button1Click(TObject *Sender)
{
  HWND MeinHandle = GetForegroundWindow();

  SetWindowText(MeinHandle, &quot;Testo&quot;);
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/686002</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686002</guid><dc:creator><![CDATA[frieda]]></dc:creator><pubDate>Mon, 03 Jan 2005 18:46:21 GMT</pubDate></item><item><title><![CDATA[Reply to Handle anhand von Fenster ID ermitteln? on Mon, 03 Jan 2005 18:49:04 GMT]]></title><description><![CDATA[<p>billig-variante:</p>
<pre><code class="language-cpp">Sleep(irgendeineZahl);
// in der Zwischenzeit ein anderes Fenster anklicken
HWND MeinHandle = GetForegroundWindow();
// irgendwas mit dem Fenster machen..
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/686004</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686004</guid><dc:creator><![CDATA[nate7]]></dc:creator><pubDate>Mon, 03 Jan 2005 18:49:04 GMT</pubDate></item><item><title><![CDATA[Reply to Handle anhand von Fenster ID ermitteln? on Mon, 03 Jan 2005 18:49:08 GMT]]></title><description><![CDATA[<p>Nein nicht unbedingt du must nur<br />
GetForegroundWindow();<br />
zum richtigen zeitpunkt ausführen<br />
z.b. zum event getfocuslost (keine ahnung ob das so heist hoff nur du weisst was ich meine)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/686005</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686005</guid><dc:creator><![CDATA[spjoe]]></dc:creator><pubDate>Mon, 03 Jan 2005 18:49:08 GMT</pubDate></item><item><title><![CDATA[Reply to Handle anhand von Fenster ID ermitteln? on Mon, 03 Jan 2005 18:55:08 GMT]]></title><description><![CDATA[<p>getfocuslost ??</p>
<p>ups, wo soll ich das denn finden?</p>
<p>soll das ein ereignis meines formulars sein?</p>
<p>benutze bcb</p>
]]></description><link>https://www.c-plusplus.net/forum/post/686009</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686009</guid><dc:creator><![CDATA[frieda]]></dc:creator><pubDate>Mon, 03 Jan 2005 18:55:08 GMT</pubDate></item><item><title><![CDATA[Reply to Handle anhand von Fenster ID ermitteln? on Mon, 03 Jan 2005 19:04:26 GMT]]></title><description><![CDATA[<p>GetSafeHwnd bin mir aber nicht mehr sicher</p>
]]></description><link>https://www.c-plusplus.net/forum/post/686018</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686018</guid><dc:creator><![CDATA[leo aka qsch]]></dc:creator><pubDate>Mon, 03 Jan 2005 19:04:26 GMT</pubDate></item><item><title><![CDATA[Reply to Handle anhand von Fenster ID ermitteln? on Tue, 04 Jan 2005 09:04:04 GMT]]></title><description><![CDATA[<p>FindWindow(Ex) <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="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/686369</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/686369</guid><dc:creator><![CDATA[flenders]]></dc:creator><pubDate>Tue, 04 Jan 2005 09:04:04 GMT</pubDate></item></channel></rss>