There are good reasons for using PostMessage. Principally, it is
asynchronous, meaning the message gets posted to the receiver's message
queue, and the function returns without waiting for it to be processed. This
means that you can post a message that will be processed after the current
processing is finished, or you can post a message from a thread that will be
processed in the context of the main application at some later time or...
Maybe its the responsibility of the main window to propagate the message on
to its children - ie, perhaps Rohit you need to add code to do this.
Regards,
  Andrew Cooke.

> -----Original Message-----
> From: Coulter, Jeremy [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, August 11, 1999 3:48 PM
> To:   Multiple recipients of list delphi
> Subject:      RE: [DUG]:        POSTMESSAGE
> 
> why not do SendMessage rather thant Postmessage, cos. doesn't this take
> longer than sendmessage ??
> 
> Cheers,
> 
> Jeremy Coulter
> Application Developer
> 
> Application Development Centre
> Compaq Computer New Zealand Ltd.
> 
> Phone:        64 3 371 5724
> Fax:          64 3 371 5724
> Mobile:       64 0212533214
> E-mail:       [EMAIL PROTECTED]       
> Personal Email: [EMAIL PROTECTED]
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, August 12, 1999 3:46 AM
> To: Multiple recipients of list delphi
> Subject: [DUG]: POSTMESSAGE
> 
> 
> I have a problem with this function.  The window handle that it 
> requires can be :-
> 
> 1.  Hwnd_broadcast - which means MDIchild windows dont get it
> 
> 2.  null - which appears to mean noone gets it
> 
> 3.  screen.activeform.handle - the mainform does not get it, only the 
> current window does
> 
> 4.  application.handle - noone gets it
> 
> 5.  application.mainform.handle - no one gets it
> 
> 6.  getactivewindow - mainform gets it, MDI children dont get it
> 
> So how do I get the message to percolate thru all the windows - 
> mainform and MDIchildren ?
> 
> Any why do I always strike these limitations at testing time ?  No 
> dont answer to this.  :-)
> 
> Regards
> 
> Rohit
> 
> ======================================================================
> CFL - Computer Fanatics Ltd.  21 Barry's Point Road, AKL, New Zealand
> PH    (649) 489-2280 
> FX    (649) 489-2290
> email [EMAIL PROTECTED]  or  [EMAIL PROTECTED]
> ======================================================================
> 
> --------------------------------------------------------------------------
> -
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> --------------------------------------------------------------------------
> -
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to