🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: PostMessage vs. SendMessage

#3446
From: coates
Date: Thu, 27 Jun 1991 22:54
18 lines
1503 bytes
In article <91178.090744F0O@psuvm.psu.edu>, F0O@psuvm.psu.edu writes:
>
>   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.
>
>                                                              [Tim]


I amy not need to say this but it seems that if you want the message acted on
immediately you would send a SendMessage whereas if you can wait doa
PostMessage. SendMessage sends a message immediately to the winproc whose
handle is in its parameter list.
Technical Details
Message-ID: <1991Jun27.225400.24501@socrates.umd.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!uakari.primate.wisc.edu!aplcen!boingo.med.jhu.edu!haven.umd.edu!socrates.umd.edu!COATES@UC780.UMD.EDU
References: <91178.090744F0O@psuvm.psu.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!sdd.hp.com!uakari.primate.wisc.edu!aplcen!boingo.med.jhu.edu!haven.umd.edu!socrates.umd.edu!COATES@UC780.UMD.EDU
From: coates@UC780.UMD.EDU
Newsgroups: comp.windows.ms.programmer
Subject: Re: PostMessage vs. SendMessage
Message-ID: <1991Jun27.225400.24501@socrates.umd.edu>
Date: 27 Jun 91 22:54:00 GMT
References: <91178.090744F0O@psuvm.psu.edu>
Sender: news@socrates.umd.edu (News)
Reply-To: coates@UC780.UMD.EDU
Organization: The University of Maryland, University College
Lines: 18