English
Regulars table & Café

GetClassName.

 


Description:

GetClassName determined whom names the Fensterklasse the Fensters with the angegebenen lever.




Deklaration:

Def @GetClassName(3) !USER32,GetClassNameA




Parameter:

1.Parameter: lever the Fensters which Klassenname determined go should.
2.Parameter: enough large Memory-Variable, The whom Thread-speed? the Fensters aufnimmt.
3.Parameter: Maximale Number of letters the Klassennamens.



Return Value:

with success The Number of letters in the Thread-speed?. with one Error 0.


Examples:

DEF @GetCursorPos(1) !"USER32","GetCursorPos"
DEF @WindowFromPoint(2) !"USER32","WindowFromPoint"
Def @ScreenToClient(2) !"USER32","ScreenToClient"
Def @GetClassName(3) !"USER32","GetClassNameA"
Windowstyle 31
Windowtitle "Klassennamen from the Mausposition holen"
Window 50,75-600,350
Declare pos#,Handle&,Classname#
@CREATEBUTTON(%HWND,"Test 1",100,100,100,30)
@createListbox(%HWND,"",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))
    Dim Classname#,256
    @GetClassname(Handle&,Classname#,255)
    DrawText 0,60,"Klassenname the Fensters on this Punkt="+@String $(Classname#,0)+@space$(255)
    Dispose Classname#
    DrawText 0,40,"Fenstertitel="+@GetText$(Handle&)+@Space$(100)
    Dispose Pos#

Wend


[keywords:d073516150]
Class class Fensterklasse Klassenname Thread-speed? Classname lever Fensterhandle Window
[/keywords:d073516150]
 
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.705 Views

Untitledvor 0 min.
Jörg Sellmeyer05/15/18
Michael Borowiak07/23/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