SetForegroundWindow
-
hallo, gibt es auch das gegenteil von SetForegroundWindow?
-
Fenster minimieren?
-
ja, genau
-
Hallo,
such mal in der Hilfe nach ShowWindow().
-
kann ich damit auch ein fremdes Fenster minimieren? Ich will folgendes tun: Ein fremdes Programm maxiemieren, und nach 2 sek wieder minimieren.
-
Hast du mal in der Hilfe nachgeschaut?
BCB Hilfe schrieb:
The ShowWindow function sets the specified window's show state.
BOOL ShowWindow(
HWND hWnd, // handle of window
int nCmdShow // show state of window
);Parameters
hWnd
Identifies the window.
nCmdShow
Specifies how the window is to be shown.
Return Values
If the window was previously visible, the return value is nonzero.
If the window was previously hidden, the return value is zero.einfach das Handle des gewünschten Fensters übergeben genau wie bei SetForegroundWindow.