[DUG] Handle ID of a class?

Myles Penlington myles at ams.co.nz
Tue Oct 21 11:15:57 NZDT 2008


You can. This is what in essence the VCL does for each TWinControl
object.
You need to create your own window handle, and maybe message loop if in
another thread.
Myles.


-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of Nick
Sent: Tuesday, 21 October 2008 11:08 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: [DUG] Handle ID of a class?

Good morning,

I have a class and a thread.
One method I used for talking between a thread and a form was to use
messages (sendmessage) and using the forms handle to send the message
to.

But with my class, which is just
Type
  TMyClass = class

I have no .handle property, so is it possible to send a class a message?
Or do I have to extend from something?

Thanks
Nick

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: delphi at delphi.org.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at delphi.org.nz with Subject:
unsubscribe

Attention:
This communication is confidential and may be legally privileged.  If you are not the intended recipient, please do not use, disclose, copy or distribute it, other than to return it to us with your confirmation that it has been deleted from your system.



More information about the Delphi mailing list