write About send message and post message
Answers were Sorted based on User's Feedback
Answer / karthikeyan
SendMessage is a blocking call. ie., when a SendMessage()
API is called from an application, the lines written after
this API call cannot be executed until the message is
processed and returned by the window procedure.
Whereas PostMessage() just posts the message into the
windows corresponding message queue and returns immediately
irrespective of the message is processed or not.
| Is This Answer Correct ? | 14 Yes | 3 No |
Answer / pooja
send message doesn't follows message loop route.
while post massage follows.
examples of send message:WM_QUIT
examples of post message :WM_CLOSE,WM_COMMAND,...
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / cheruku raghu
Both are Win32 API members.
SendMessage(...) its NonQueued Messages.
PostMessage(...) its Queued Messages.
SendMessage(...) Meassages can also be placed in a message
queue by calling PostMessage(...).
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / shah chaitanya
SendMessage is calling window proc and waiting for reply.
where are PostMessage api is sending message in message
queue and will not wait. Then message will be in Message
queue till it will not be proceded by window proc.
In sort SendMessage waits till processing completion where
as PostMessage does not wait.
| Is This Answer Correct ? | 2 Yes | 1 No |
write About send message and post message
In Win32 application can we use CString datatype?
What is Function entry for DLL in win3.1?
how to Initialize contents of a dialog?
About GDI object?
Explain Win32 Program Execution flow?
what Message displayed when a window is destroyed
What is preemption and context switching?
what API used to hide window
In win32 application if defining a variable of CString then it gives the error "CString:Undeclared identifier" how to solve the problem? What headerfile need to include??
What are the COM components
2 Answers SunSoft Technologies,
What is an Hash Mapping in java?