English
Regulars table & Café

ChildWindowFromPoint.

 


Description:

ChildWindowFromPoint determined the lever one Kindfensters (Controls) one angegebenen Mainwindow from whom Fensterkoordinaten.




Deklaration:

DEF @ChildWindowFromPoint(3) !USER32,ChildWindowFromPoint




Parameter:

1.Parameter: lever the Mainwindow the The Coordinates in Parameter 2 and 3 related are as LongInt.
2.Parameter: X-Koordinate the sought Kindfensters in the Mainwindow as LongInt.
3.Parameter: Y-Koordinate the sought Kindfensters in the Mainwindow as LongInt.



Return Value:

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


Examples:

DEF @GetCursorPos(1) !"USER32","GetCursorPos"
DEF @ChildWindowFromPoint(3) !"USER32","ChildWindowFromPoint"
Def @ScreenToClient(2) !"USER32","ScreenToClient"
Windowstyle 31
Windowtitle "Fenstertitel from the 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)
    @ScreenToClient(%HWND,Pos#)
    Let Handle&=@ChildWindowFromPoint(%HWND,@Long(Pos#,0),@Long(Pos#,4))
    DrawText 0,40,"Handle the Fensters on this Punkt="+@STR$(Handle&)+@Space$(100)
    DrawText 0,60,"Fenstertitel="+@GetText$(Handle&)+@Space$(100)
    Dispose Pos#

Wend


[keywords:05138355a1]
Window lever Fensterhandle Coordinates Mausposition mouse position screen Screen Control dialog
[/keywords:05138355a1]
 
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.265 Views

Untitledvor 0 min.
H.Brill10/08/17
Manfred Barei06/08/14
Rolf Koch01/16/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