English
Regulars table & Café

SetWindowPos.

 


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:

CompileMarkSeparation
DEF 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

 
03/05/05  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

2.473 Views

Untitledvor 0 min.
Untitled11/24/12
Stephan Sonneborn03/21/11

Themeninformationen

this Topic has 1 subscriber:

unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie