Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 May : Re: Making server interact with GUI

www.cryer.info
Managed Newsgroup Archive

Re: Making server interact with GUI

Subject:Re: Making server interact with GUI
Posted by:"John Carlyle-Clarke" (jpcc@removethis.bigfoot.com)
Date:11 May 2006 16:25:51

"Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> wrote in
news:4463747d$1@newsgroups.borland.com:

>
> "John Carlyle-Clarke" <jpcc@removethis.bigfoot.com> wrote in
> message news:Xns97C0B19B5FC74discombobulation@207.105.83.66...
>
>> The context.data has a class of my own which has the hwnd of the
>> form, so when ReadLn returns in the Execute event I get the
>> window handle from context.data and send a message to it to
>> display the text.
>
> Keep in mind that the VCL may recreating its HWNDs at any time, so
> you should consider having your form override its CreateWnd() and
> DestroyWnd() methods so you can detect when the HWND is
> destroyed/recreated in order to update your contexts accordingly.
>

I didn't realize that I must admit!  Would I be better using
AllocateHWnd instead, or perhaps creating my own queue object to
mediate between the two threads?

Replies:

In response to:

www.cryer.info
Managed Newsgroup Archive