Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

PostMessage() doesnt work while holding a dialog box

here is the thing
i am using PostMessage() to post several messages to a dialog box from several location
this works just fine but when i am holding the dialog - e.g. dragging it - the dialog doesn't feel that a message is being sent

i am using PreTranslateMessage() method to filter message

so what is wrong with posting message to a dialog that is being hold - dragged -
or if there is anything wrong, what is the solution for that

thanks alot u guys
[497 byte] By [singersinger] at [2007-11-11 10:29:03]
# 1 Re: PostMessage() doesnt work while holding a dialog box
While you dragging a dlg it's busy processing other messages relating to changing its positions. Try using SendMessage instead of PostMessage because SendMessage send a message directly to a dlg (wnd) window procedure as opposed to PostMessage which puts the message in the message queue.
Ivan** at 2007-11-11 20:58:46 >