English
Regulars table & Café

WindowFromPoint.

 


Description:

WindowFromPoint determined the lever one Fensters the itself in a designed Bildschirmpunkt befindet.




Deklaration:

DEF @WindowFromPoint(2) !USER32,WindowFromPoint




Parameter:

1.Parameter: X-Koordinate the Fensters.
2.Parameter: Y-Koordinate the Fensters.



Return Value:

with success becomes the lever the Fensters zurückgegeben, with one Error becomes 0 zurückgegeben.


Examples:

CompileMarkSeparation
DEF @GetCursorPos(1) !"USER32","GetCursorPos"
DEF @WindowFromPoint(2) !"USER32","WindowFromPoint"
Windowstyle 31
Windowtitle "Fenstertitel von der Mausposition holen"
Window 50,75-600,350
Declare pos#,Handle&
@CREATEBUTTON(%HWND,"Test 1",100,100,100,30)
@createtext(%HWND,"Test 2",100,150,100,30)

While 0=0

    Sleep 10
    DIM POS#,8
    @GetCursorPos(pos#)
    Drawtext 0,0,"Global X="+@STR$(@Long(Pos#,0))+@Space$(100)
    Drawtext 0,20,"Global Y="+@STR$(@Long(Pos#,4))+@Space$(100)
    Let Handle&=@WindowFromPoint(@Long(Pos#,0),@Long(Pos#,4))
    Drawtext 0,40,"Handle des Fensters an diesem Punkt="+@STR$(Handle&)+@Space$(100)
    Drawtext 0,60,"Fenstertitel="+@GetText$(Handle&)+@Space$(100)
    Dispose Pos#

Wend


[keywords:15f5de437d]
Window lever Fensterhandle Coordinates Mausposition mouse position screen Screen
[/keywords:15f5de437d]
 
04/19/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.119 Views

Untitledvor 0 min.
helpself01/29/13
Julian Schmidt10/06/12
Klaus Ernst02/08/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