| |
|
|
 |
Beschreibung:
qui API SetWindowPos ändert qui Position, Taille ou bien Anzeigereihenfolge eines Fensters.
Deklaration:
DEF SetWindowPosition(7) !USER32,SetWindowPos
paramètre:
1.paramètre: Handle des Fensters.
2.paramètre: un Handle des Fensters, cela dem la fenêtre dans qui Anzeigehirachie vorausgeht, ou bien einer de folgenden Werten: -1 = Unterste Position im Kindfensterstapel. --2 = Unterste Position aller dessus liegenden la fenêtre. -0 = Oberste Position im Kindfensterstapel. --1 = Oberste Position aller dessus liegenden la fenêtre.
3.paramètre: Neue horizontale Position.
4.paramètre: Neue vorizontale Position.
5.paramètre: Neue Breite.
6.paramètre: Neue Hauteur.
7.paramètre: Positionierungs Flags (peut avec | addiert volonté)=> -1 = paramètre 5 et 6 volonté ignoriert, cela la fenêtre ändert pas qui Taille. -2 = paramètre 3 et 4 volonté ignoriert, cela la fenêtre wird pas déménagé. -4 = paramètre 2 wird ignoriert, qui Anzeigehirachie ändert sich pas. -8 = Pour dem Déplacer erfolgt ne...aucune Neuzeichnen. -$10 = cela la fenêtre wird pas aktiviert. -$40 = Zeigt cela la fenêtre à. -$80 = Versteckt cela la fenêtre.
Rückgabewert:
1 chez Erfolg, 0 chez faute.
Beispiele:
KompilierenMarqueSéparationDEF SetWindowPosition(7) !"USER32","SetWindowPos"
Windowstyle 31
Windowtitle "Fenster im Vordergrund"
Window 0,0-640,400
DEclare HWND&,Vordergrund&,Hintergrund&
LET HWND&=%HWND
LET VORDERGRUND&=@Createbutton(%HWND,"Always on top",10,100,150,30)
LET Hintergrund&=@Createbutton(%HWND,"Not on TOP",10,150,150,30)
While @equ(0,0)
waitinput
IF @getfocus(VORDERGRUND&)
@SetWindowPosition(Fensterhandle,Fensterplatz=HWND_TOPMOST,X-Position,Y-Position,Breite,Höhe,Flags=SWP_NOMOVE+SWP_NOSIZE+SWP_SHOWWINDOW)
@SetWindowPosition(HWND&,-1,0,0,640,400,@add(2,@add(1,$40)))
ELSEIF @getfocus(Hintergrund&)
@SetWindowPosition(Fensterhandle,Fensterplatz=HWND_NOTOPMOST,X-Position,Y-Position,Breite,Höhe,Flags=SWP_NOMOVE+SWP_NOSIZE+SWP_SHOWWINDOW)
@SetWindowPosition(HWND&,-2,0,0,640,400,@add(2,@add(1,$40)))
endif
Wend
|
|
|
| |
|
|