Autor Beitrag
Karstadt
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Mi 12.10.05 13:10 
Guten Tag. Kann mir jemand erklären "für Dummies" welche Rolle die Eigneschaft Handle in Delphi spielt?

Ich habe das noch nie verwendet :(

Diese Aufruf der Funktion erfolgt in VB
ausblenden Quelltext
1:
rtn = BiSetStatusBackWnd(m_hApi, Buttn1.hWnd, m_Status)					


Wie kann ich diese Funktion in Delphi intergrieren:

ausblenden Delphi-Quelltext
1:
rtn = BiSetStatusBackWnd(INTEGER, ???? , m_INTEGER)					



MFG

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.
Moderiert von user profile iconraziel: Topic aus Sonstiges verschoben am Mi 12.10.2005 um 18:53
rochus
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 416

Win XP Prof, Fedora Core 4, SuSE 7.0
D7 Ent, D2005 Pers
BeitragVerfasst: Mi 12.10.05 16:37 
Buttn1.Handle?

_________________
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean
Karstadt Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 174

Windows 2000 / XP
Delphi 7 Pro
BeitragVerfasst: Do 13.10.05 07:10 
Hallo. Ich habe mit Form1.handle ausprobiert. Das funktioniert. Handle ist ein generierter Integer zahl eines Objektes in Program.

Was man aber mir diesen Handle anfangen kann bzw. welche Anwendungen benötigen das und wofür ist mir in moment nicht klar.

Ich vermute, dass das für die Anwendungen interessant ist, die fremde Anwendungen steuern wollen.
digi_c
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1905

W98, XP
D7 PE, Lazarus, WinAVR
BeitragVerfasst: Do 13.10.05 10:07 
Genau. Unter Delphi wie auch VB(nach deklarieren als DLL Funktion) kann man auf Funktionen der Windows API zugreifen. Diese erwartet meistens ein Handle entweder auf Fenster oder deren Elemente oder oder oder ;)

Ein Handle ist also im Prinzip ein Pointer hinter dem Daten mit einer bestimmten Struktur stehen.