Autor Beitrag
HawkLUED
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62

WinXP
Delphi 7 Enterprise, Delphi 2007
BeitragVerfasst: Mo 08.11.04 11:25 
Hi zusammen,

wie komme ich, wenn ich ein Fenster Handle habe, an die Form???

Danke im voraus

Gruß

Andreas


Moderiert von user profile iconUGrohne: Topic aus Windows API verschoben am Mo 08.11.2004 um 11:31

_________________
Wenn Debuggen der Vorgang ist, Fehler aus einem Programm auszubauen,
dann ist Programmieren der Vorgang, Fehler in ein Programm einzubauen !
Motzi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2931

XP Prof, Vista Business
D6, D2k5-D2k7 je Prof
BeitragVerfasst: Mo 08.11.04 11:34 
Was meinst du mit "an die Form"..? Welche Infos genau willst du haben?

_________________
gringo pussy cats - eef i see you i will pull your tail out by eets roots!
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Mo 08.11.04 11:39 
Ich denke, er hat das Handle und will auf das Form zugreifen, z.B. auf Elemente darin.
Du musst das ganze per Typumwandlung machen:
TForm1(Handle)gibt Dir das gewünschte Form-Objekt zurück, mit dem Du dann auf die darin deklarierten Elemente zugreifen kannst. Du musst nur darauf achten, dass der Typ (TForm1) richtig ist, denn jedes Formular, dass Du selbst erzeugst, hat einen eigenen Typ. Wenn Du TForm nimmst, dann kannst Du nur auf die normalen Formulareigenschaften zugreifen.
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Mo 08.11.04 14:42 
Ich sehe irgendwie nicht den Bezug zur Überschrift ... :gruebel:

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Mo 08.11.04 16:54 
.Chef hat folgendes geschrieben:
Ich sehe irgendwie nicht den Bezug zur Überschrift ... :gruebel:


ich auch nicht :mrgreen:
ich könnte mir aber folgendes zusammenreimen:
er möchte den handle des aktuellen fensters unter der mausposition x,y herausbekommen

//edit:testedit :mrgreen:

_________________
Patrick
im zweifelsfall immer das richtige tun!!!


Zuletzt bearbeitet von patrick am Di 09.11.04 09:31, insgesamt 1-mal bearbeitet
Benutzername
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 210

Win XP Pro
Delphi 7 PE, D2005 Prof. SSL
BeitragVerfasst: Mo 08.11.04 17:04 
Sollte dies wirklich der Fall sein, dann sollte sich der Autor mal die Funktion
ausblenden Delphi-Quelltext
1:
WindowFromPoint					

ansehen :)
HawkLUED Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 62

WinXP
Delphi 7 Enterprise, Delphi 2007
BeitragVerfasst: Di 09.11.04 09:19 
Titel: Aufklärung
Hallo,

danke für Eure Antworten! Ich wollte wirklich an die eigentliche Form heran, und dann auf ein bestimmtes Element zugreifen!

Hat sich aber mittlerweile erledigt, da ich das ganze jetzt anders mache!

Trotzdem danke an alle!

Gruß

Andreas

_________________
Wenn Debuggen der Vorgang ist, Fehler aus einem Programm auszubauen,
dann ist Programmieren der Vorgang, Fehler in ein Programm einzubauen !