🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3451

Re: PostMessage vs. SendMessage

#3451
From: CADSI
Date: Fri, 28 Jun 1991 05:15
20 lines
1518 bytes
From article <91178.090744F0O@psuvm.psu.edu>, by F0O@psuvm.psu.edu:
> 
>    I'm very new to windows programming, and was wondering for what sorts
> or reasons would you want to use one over the other?
>    PostMessage will put it's message in the queue and return immediately,
> where SendMessage doesn't put it's message in the queue but waits until
> the message is processed before returning.
>    It looks to me like PostMessage would be better to use, since you
> wouldn't have to wait for the message to be processed; unless you don't
> want to fill the queue up with an additional message.
> 

Many Message calls return a piece of information needed to carry forward.
In these cases, the SendMessage is needed for the return value.

|----------------------------------------------------------------------------|
|Tom Hite					|  The views expressed by me |
|Manager, Product development			|  are mine, not necessarily |
|CADSI (Computer Aided Design Software Inc.	|  the views of CADSI.       |
|----------------------------------------------------------------------------|
Technical Details
Message-ID: <1991Jun28.051552.31015@ccad.uiowa.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!ns-mx!ccad.uiowa.edu!cadsi
References: <91178.090744F0O@psuvm.psu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!ns-mx!ccad.uiowa.edu!cadsi
From: cadsi@ccad.uiowa.edu (CADSI)
Newsgroups: comp.windows.ms.programmer
Subject: Re: PostMessage vs. SendMessage
Message-ID: <1991Jun28.051552.31015@ccad.uiowa.edu>
Date: 28 Jun 91 05:15:52 GMT
References: <91178.090744F0O@psuvm.psu.edu>
Organization: CAD-Research, U. of Iowa, Iowa City, Iowa
Lines: 20