> Is it just that the handle is not public or not there at all? Try casting as Tcomponent (if possible).
It's not there at all. TDataModule already descends from TComponent, so
that type-cast would do nothing. TComponent doesn't have a handle,
either. The Handle property gets introduced in TWinControl. TDataModule
is not a windowed control. It has a windowed representation in the IDE
to allow you to put other components on it, but that's only at design time.
To send messages to a data module, there needs to be a window available.
You can use the AllocateHWnd function to create a window for receiving
messages. That function expects a method pointer, which the new window
will call whenever a message arrives. Implement the method in the
data-module object. There are a couple of examples of using AllocateHWnd
in the VCL source code.
--
Rob
-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED]
SPONSORED LINKS
| C programming language | Computer programming languages | Java programming language |
| The c programming language | C programming language | Concept of programming language |
YAHOO! GROUPS LINKS
- Visit your group "delphi-en" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

