English
Source / code snippets

detect Fensterkoordinaten

 

CompileMarkSeparation
Source wurde am 15.07.2007 aus der MMJ-Quellcodesammlung (Dietmar Horn) in die Babyklappe auf XProfan.Com abgelegt:
Fensterkoordinaten ermitteln
Declare W1&,W2&
Declare C2sstrc#
Def @Clienttoscreen(2) !USER32,ClientToScreen
Def @G2lx(0) @Long(C2sstrc#,0)
Def @G2ly(0) @Long(C2sstrc#,4)

Proc G2l

    Parameters Hdl&
    Clear C2sstrc#
    @Clienttoscreen(Hdl&,C2sstrc#)

Endproc

Dim C2sstrc#,8
Windowstyle 31+512
Windowtitle Fensterkoordinaten ermitteln
Window 0,0-640,440
W1&=@Createdialog(%Hwnd,Dialog 1,100,100,200,200)
W2&=@Createdialog(%Hwnd,Dialog 2,(%Maxx-300),200,200,200)

Whilenot %Menuitem=-2

    Sleep 100
    G2l W1&
    Textcolor @Rgb(255,0,0),@Rgb(0,0,0)
    Drawtext 0,0,Koordinaten von Dialog 1: +@Str$(@G2lx())+ +@Str$(@G2ly())+@Space$(255)
    G2l W2&
    Drawtext 0,30,Koordinaten von Dialog 2: +@Str$(@G2lx())+ +@Str$(@G2ly())+@Space$(255)

Wend

@Destroywindow(W1&)
@Destroywindow(W2&)
Cls
Usefont Times New Roman,30,15,1,0,0
Drawtext 0,0,Besten Dank an iF für diese Idee!
Dispose C2sstrc#
Usecursor 2
Sleep 2000
End
 
07/15/07  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.119 Views

Untitledvor 0 min.
RICOSCH10/12/14
Stephan Sonneborn03/15/12
Thomas Freier06/16/11
Roland Schäffer02/14/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