Luke Pascoe <[EMAIL PROTECTED]> wrote on 18/06/2001 12:30:59:
>
>Hello again.
>
>How do you send/post a message to a component that doesn't have a 
>handle (Like a TGraphicControl)? BTW, The component will be sending 
>the message to itself, but it needs to go via the message queue so 
>DispatchMessage is no good.

I think you'll find that SendMessage/PostMessage will only work if the 
component owns a window handle - after all, that's how they figure out 
where the message is going. 

If you're writing the component then you can create an invisible window 
to act as your message target.  There's a good example of this method 
in the ICS TWSocket implementation... which is a nice crossover to the 
TCP/IP thread here :> 

(If you don't want to mess around in the ICS source, let me know and 
I'll post the relevant part) 

--
Corey Murtagh
The Electric Monk
"Quidquid latine dictum sit, altum viditur!"

---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED] 
with body of "unsubscribe delphi"

Reply via email to