<?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[Fenster Frage]]></title><description><![CDATA[<p>Hallo Zusammen,<br />
wie muss ich ein Fenster initialisieren, dass man seine Größe nicht ändern kann?<br />
Und wie bring ich das Fenster bei einem bestimmten Event in den Vordergrund?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/178310/fenster-frage</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Jul 2026 19:19:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/178310.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 10 Apr 2007 10:04:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fenster Frage on Tue, 10 Apr 2007 10:04:05 GMT]]></title><description><![CDATA[<p>Hallo Zusammen,<br />
wie muss ich ein Fenster initialisieren, dass man seine Größe nicht ändern kann?<br />
Und wie bring ich das Fenster bei einem bestimmten Event in den Vordergrund?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1262786</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1262786</guid><dc:creator><![CDATA[mr. tompkins]]></dc:creator><pubDate>Tue, 10 Apr 2007 10:04:05 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster Frage on Tue, 10 Apr 2007 11:57:38 GMT]]></title><description><![CDATA[<p>Also wenn ein Fenster seine größe nicht verändern soll dann darf das Fenster nicht WS_SIZEBOX oder WS_THICKFRAME als Style haben (so lies ich das aus der MSDN)<br />
Für in den Vordergrund probier mal SetForegroundWindow(...);</p>
<p>[edit] Nur so für die Zukunft, den Titel kann man noch ein bissel besser wählen <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> [\edit]<br />
MfG schirrmie</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1262908</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1262908</guid><dc:creator><![CDATA[schirrmie]]></dc:creator><pubDate>Tue, 10 Apr 2007 11:57:38 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster Frage on Tue, 10 Apr 2007 12:00:50 GMT]]></title><description><![CDATA[<p>mr. tompkins schrieb:</p>
<blockquote>
<p>Hallo Zusammen,<br />
wie muss ich ein Fenster initialisieren, dass man seine Größe nicht ändern kann?</p>
</blockquote>
<p>Bzw.: <a href="http://msdn2.microsoft.com/en-us/library/ms632626.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms632626.aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1262914</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1262914</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Tue, 10 Apr 2007 12:00:50 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster Frage on Tue, 10 Apr 2007 12:30:55 GMT]]></title><description><![CDATA[<p>Danke für die schnelle Antwort.<br />
Die Sache mit der Größenänderung hat funktioniert aber mit SetForegroundWindow blinkt das Fenster in der Taskleiste kommt aber nicht in den Vordergrund.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1262947</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1262947</guid><dc:creator><![CDATA[mr. tompkins]]></dc:creator><pubDate>Tue, 10 Apr 2007 12:30:55 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster Frage on Tue, 10 Apr 2007 12:48:29 GMT]]></title><description><![CDATA[<p>mr. tompkins schrieb:</p>
<blockquote>
<p>aber mit SetForegroundWindow blinkt das Fenster in der Taskleiste kommt aber nicht in den Vordergrund.</p>
</blockquote>
<p>Siehe hier: <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/setforegroundwindow.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/windowing/windows/windowreference/windowfunctions/setforegroundwindow.asp</a><br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/27a1.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--right_arrow"
      title=":arrow_right:"
      alt="➡"
    /></p>
<p>MSDN schrieb:</p>
<blockquote>
<p>Windows 98/Me: The system restricts which processes can set the foreground window. A process can set the foreground window only if one of the following conditions is true:</p>
<ul>
<li>The process is the foreground process.</li>
<li>The process was started by the foreground process.</li>
<li>The process received the last input event.</li>
<li>There is no foreground process.</li>
<li>The foreground process is being debugged.</li>
<li>The foreground is not locked (see LockSetForegroundWindow).</li>
<li>The foreground lock time-out has expired (see SPI_GETFOREGROUNDLOCKTIMEOUT in SystemParametersInfo).</li>
<li>Windows 2000/XP: No menus are active.</li>
</ul>
<p><strong>With this change, an application cannot force a window to the foreground while the user is working with another window.</strong> Instead, Foreground and Background Windows will activate the window (see SetActiveWindow) and call the function to notify the user.</p>
</blockquote>
<p>Das ist IMHO eine Art Schutzmechanismus, damit Du mit Deinem Programm dem Benutzer nicht einfach auf die Nerven gehen kannst, in dem Du Dein Programm(-fenster) immer in den Vordergrund holst. Wie siehts mit <em>SetActiveWindow</em> aus?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1262960</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1262960</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Tue, 10 Apr 2007 12:48:29 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster Frage on Tue, 10 Apr 2007 12:57:46 GMT]]></title><description><![CDATA[<p>CodeFinder schrieb:</p>
<blockquote>
<p>. Wie siehts mit <em>SetActiveWindow</em> aus?</p>
</blockquote>
<p>Funktionioniert komischerweise einmal danach nichtmehr.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1262968</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1262968</guid><dc:creator><![CDATA[mr. tompkins]]></dc:creator><pubDate>Tue, 10 Apr 2007 12:57:46 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster Frage on Tue, 10 Apr 2007 16:34:27 GMT]]></title><description><![CDATA[<p>Hmm dann probiers mal mit <a href="http://msdn2.microsoft.com/en-us/library/ms633545.aspx" rel="nofollow">SetWindowPos</a> in Verbindung mit <em>HWND_TOP</em>.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1263153</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1263153</guid><dc:creator><![CDATA[CodeFinder]]></dc:creator><pubDate>Tue, 10 Apr 2007 16:34:27 GMT</pubDate></item></channel></rss>