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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
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: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [EMAIL PROTECTED] 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.

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

Reply via email to