| |
|
|
|
Description:
declared SetWindowPos changes The position, Size or Anzeigereihenfolge one Fensters.
Deklaration:
DEF SetWindowPosition(7) !USER32,SetWindowPos
Parameter:
1.Parameter: lever the Fensters. 2.Parameter: One lever the Fensters, the the Window in the Anzeigehirachie vorausgeht, or of/ one of subesquent Values: -1 = lowermost position in the Kindfensterstapel. --2 = lowermost position all supra liegenden Window. -0 = supreme position in the Kindfensterstapel. --1 = supreme position all supra liegenden Window. 3.Parameter: new horizontale position. 4.Parameter: new vorizontale position. 5.Parameter: new wide. 6.Parameter: new Höhe. 7.Parameter: Positionierungs ? Happen? (can with | add go)=> -1 = Parameter 5 and 6 go ignoring, the window changes not The Size. -2 = Parameter 3 and 4 go ignoring, the window won't moved. -4 = Parameter 2 becomes ignoring, The Anzeigehirachie changes not. -8 = After the move results no Repaint. -$10 = the Window won't activate. -$40 = shows the window on. -$80 = cache the window.
Return Value:
1 with success, 0 with Error.
Examples:
CompileMarkSeparationDEF 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
|
|
|
| |
|
|