Fenster Position verändern
-
Hey,
wie kann man ein Fenster in den Vordergrund bringen oder es in den Hintergrund bringen.mfg
-
hmm...
weiß zwar nich was genau du machen willst,
aber das hier könnte hilfreich sein ^^GetNextWindow
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.damit holst du dir das gewünschte handle und mit
SetForegroundWindow
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.kannst du dann das gewünschte fenster in den vordergrund bringen...
MfG
Schandi