<?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 Position verändern]]></title><description><![CDATA[<p>Hey,<br />
wie kann man ein Fenster in den Vordergrund bringen oder es in den Hintergrund bringen.</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/188566/fenster-position-verändern</link><generator>RSS for Node</generator><lastBuildDate>Fri, 03 Jul 2026 12:11:46 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/188566.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 01 Aug 2007 20:06:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fenster Position verändern on Wed, 01 Aug 2007 20:06:16 GMT]]></title><description><![CDATA[<p>Hey,<br />
wie kann man ein Fenster in den Vordergrund bringen oder es in den Hintergrund bringen.</p>
<p>mfg</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1336825</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1336825</guid><dc:creator><![CDATA[69]]></dc:creator><pubDate>Wed, 01 Aug 2007 20:06:16 GMT</pubDate></item><item><title><![CDATA[Reply to Fenster Position verändern on Thu, 02 Aug 2007 09:00:56 GMT]]></title><description><![CDATA[<p>hmm...<br />
weiß zwar nich was genau du machen willst,<br />
aber das hier könnte hilfreich sein ^^</p>
<p>GetNextWindow</p>
<pre><code class="language-cpp">The GetNextWindow function retrieves a handle to the next or previous window in the Z order. The next window is below the specified window; the previous window is above.
If the specified window is a topmost window, the function retrieves a handle to the next (or previous) topmost window. 
If the specified window is a top-level window, the function retrieves a handle to the next (or previous) top-level window. 
If the specified window is a child window, the function searches for a handle to the next (or previous) child window. 

HWND GetNextWindow(
  HWND hWnd,  // handle to current window
  UINT wCmd   // direction flag
);

Parameters
hWnd 
Handle to a window. The window handle retrieved is relative to this window, based on the value of the wCmd parameter. 
wCmd 
Specifies whether the function returns a handle to the next window or of the previous window. This parameter can be either of the following values: Value Meaning 
GW_HWNDNEXT Returns a handle to the window below the given window. 
GW_HWNDPREV Returns a handle to the window above the given window. 

Return Values
If the function succeeds, the return value is a handle to the next (or previous) window. If there is no next (or previous) window, the return value is NULL. To get extended error information, callGetLastError. 

Remarks
Using this function is the same as calling the GetWindow function with the GW_HWNDNEXT or GW_HWNDPREV flag set.
</code></pre>
<p>damit holst du dir das gewünschte handle und mit</p>
<p>SetForegroundWindow</p>
<pre><code class="language-cpp">The SetForegroundWindow function puts the thread that created the specified window into the foreground and activates the window. 
Keyboard input is directed to the window, and various visual cues are changed for the user. 
The system assigns a slightly higher priority to the thread that created the foreground window than it does to other threads. 

BOOL SetForegroundWindow(
  HWND hWnd   // handle to window to bring to foreground
);

Parameters
hWnd 
Handle to the window that should be activated and brought to the foreground. 
Return Values
If the window was brought to the foreground, the return value is nonzero.

If the window was not brought to the foreground, the return value is zero. 

Remarks
The foreground window is the window at the top of the Z order. It is the window that the user is working with. 
In a preemptive multitasking environment, you should generally let the user control which window is the foreground window.
</code></pre>
<p>kannst du dann das gewünschte fenster in den vordergrund bringen...</p>
<p>MfG<br />
Schandi</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1337108</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1337108</guid><dc:creator><![CDATA[Schandmaul]]></dc:creator><pubDate>Thu, 02 Aug 2007 09:00:56 GMT</pubDate></item></channel></rss>