<?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[abfrage ob fenster in hintergrund]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich würde gerne folgendes realisieren, aber ich bekomms net ganz hin.<br />
EIne Abfrage, ob mein Fenster als oberstes Fenster auf dem Desktop liegt oder im Hintergrund.</p>
<p>Ich habe mir schon vieles angeschaut, weiß aber nicht was ich genau davon jetzt nehmen muss.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/174753/abfrage-ob-fenster-in-hintergrund</link><generator>RSS for Node</generator><lastBuildDate>Sun, 12 Jul 2026 23:47:59 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/174753.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 03 Mar 2007 07:59:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to abfrage ob fenster in hintergrund on Sat, 03 Mar 2007 07:59:02 GMT]]></title><description><![CDATA[<p>Hallo!</p>
<p>Ich würde gerne folgendes realisieren, aber ich bekomms net ganz hin.<br />
EIne Abfrage, ob mein Fenster als oberstes Fenster auf dem Desktop liegt oder im Hintergrund.</p>
<p>Ich habe mir schon vieles angeschaut, weiß aber nicht was ich genau davon jetzt nehmen muss.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1238393</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1238393</guid><dc:creator><![CDATA[GermanDream]]></dc:creator><pubDate>Sat, 03 Mar 2007 07:59:02 GMT</pubDate></item><item><title><![CDATA[Reply to abfrage ob fenster in hintergrund on Sat, 03 Mar 2007 10:34:26 GMT]]></title><description><![CDATA[<p>Guck dir mal die Funktionen an:</p>
<ul>
<li><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/getforegroundwindow.asp" rel="nofollow">GetForegroundWindow</a></li>
<li><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/getforegroundwindow.asp" rel="nofollow">SetWindowPos</a></li>
<li><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/getforegroundwindow.asp" rel="nofollow">GetNextWindow</a></li>
</ul>
<p>MFG<br />
Ace</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1238433</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1238433</guid><dc:creator><![CDATA[AceKiller73]]></dc:creator><pubDate>Sat, 03 Mar 2007 10:34:26 GMT</pubDate></item><item><title><![CDATA[Reply to abfrage ob fenster in hintergrund on Sat, 03 Mar 2007 11:43:59 GMT]]></title><description><![CDATA[<p>ok, dass habe ich mir fast gedacht, aber muss ich das dann so machen?</p>
<pre><code class="language-cpp">if (GetForegroundWindow()== Form1-&gt;Handle)
{
-aktion-
}
</code></pre>
<p>das funktioniert nämlich nicht...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1238457</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1238457</guid><dc:creator><![CDATA[GermanDream]]></dc:creator><pubDate>Sat, 03 Mar 2007 11:43:59 GMT</pubDate></item><item><title><![CDATA[Reply to abfrage ob fenster in hintergrund on Sat, 03 Mar 2007 12:12:28 GMT]]></title><description><![CDATA[<p>Was heißt funtz. nicht?</p>
<p>In welche Methode haste es denn reingeschrieben?</p>
<p>Wenn du z.B. nen Timer im BCB nimmst oder ne schleife.</p>
<pre><code class="language-cpp">void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
if (GetForegroundWindow()== Form1-&gt;Handle)
{
        Label1-&gt;Caption = &quot;Foreground&quot;;
}else{
        Label1-&gt;Caption = &quot;Not Foreground&quot;;
}
}
</code></pre>
<p>Wenn du jetzt nen anderes Fenster kurz in den Vordergrund holst solltest du dort ein Not Foreground stehen haben.</p>
<p>MFG<br />
Ace</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1238468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1238468</guid><dc:creator><![CDATA[AceKiller73]]></dc:creator><pubDate>Sat, 03 Mar 2007 12:12:28 GMT</pubDate></item></channel></rss>