Autor Beitrag
patmann2001
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 201

Windows 7 Prof.
Delphi XE2
BeitragVerfasst: Do 22.06.06 21:36 
Hallo

Ich schreibe gerade eine Komponente für Interprozesskommunikation über WM_COPYDATA.
Dank Lucky habe ich eine vernünftige Sende und Empfangsroutine.
Da eine unsichtbare Komponente normalerweise kein Handle hat muss ich leider die eigentliche Message noch immer in der Hauptform abfangen:
ausblenden Quelltext
1:
procedure WMCOPYDATA(var msg: TWMCopyData); message WM_COPYDATA;					

und dann an meine Komponente weiterleiten. Das ist nervig, denn es währe schöner, wenn meine Komponente auch diesen Schritt "alleine" machen könnte.
Hat jemand da einen Tip für mich??

Vielen dank schon mal im vorraus

cu Patmann
Bernhard Geyer
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 721
Erhaltene Danke: 3



BeitragVerfasst: So 25.06.06 20:59 
Dann erzeug dir doch ein Fensterhandle welches Du nicht sichtbar schaltest.
patmann2001 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 201

Windows 7 Prof.
Delphi XE2
BeitragVerfasst: Mo 26.06.06 12:57 
Kannst du mir erklären wie man sowas macht??

cu Patmann
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Mo 26.06.06 13:24 
Leite deine Komponente einfach von TWinControl ab, dann hast du ein Handle :D


MrSaint

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems