Programm wie Windows Taskleiste
-
Hallo,
ich habe eine Frage. Vielleicht kann mir hier ja jemand helfen:
Ich möchte gerne ein Programm schreiben, das sich verhält, wie die Taskleiste von Windows. D.h. es soll, den Screen für andere Programme "verkleinern". Also wenn andere Programme maximiert sind, sollen sie am Rand meiner Java Applikation hängen.
Ich hoffe das war einigermaßen verständlich.
Kann mir jemand einen Tipp geben?
Danke
Grüße
Cyjackz
-
Aus der MSDN zum Thema
BOOL SystemParametersInfo( UINT uiAction, // system parameter to retrieve or set UINT uiParam, // depends on action to be taken PVOID pvParam, // depends on action to be taken UINT fWinIni // user profile update option );
SPI_SETWORKAREA Sets the size of the work area. The work area is the portion of the screen not obscured by the system taskbar or by application desktop toolbars. The pvParam parameter is a pointer to a RECT structure that specifies the new work area rectangle, expressed in virtual screen coordinates. In a system with multiple display monitors, the function sets the work area of the monitor that contains the specified rectangle. If pvParam is NULL, the function sets the work area of the primary display monitor to the full screen.
Damit müsste es doch klappen.
-
Guck mal in die MSDN:
SystemParametersInfo mit dem Parameter SPI_SETWORKAREA
-
Oder diese mehr auf deinen Anwendungsfall zugeschnittene Funktion: SHAppbarMessage