Re: Bypass DispatchMessage

Tech-Archive recommends: Speed Up your PC by fixing your registry



"Kevin" <kevin11@xxxxxxxxxxx> wrote in message
news:e9%23wUsyPHHA.1380@xxxxxxxxxxxxxxxxxxxxxxx
I was wondering, is it okay to *not* call DispatchMessage for a message
retrieved by GetMessage? If TranslateMessage is called, must
DispatchMessage be called?

No, it's not OK in general. TranslateMessage() takes keystroke messages and
from then composes WM_CHAR messages. DispatchMessage() takes messages and
passes them to the proper window procedure.

My guess is that whatever is working for you is working only because sent
(not posted) messages are getting routed properly while at the same time not
much of any importance is being posted.

Regards,
Will

www.ivrforbeginners.com


.



Relevant Pages

  • Messages in Windows
    ... According to MSDN, "After removing a message from its queue, an application ... can use the DispatchMessage function to direct the system to send the ... The ProcessMessages() will do the following: ... Are the character messages translated by TranslateMessage() posted to the message queue of thread of ProcessMessages, ...
    (microsoft.public.vc.language)
  • Re: Messages in Windows
    ... > According to MSDN, "After removing a message from its queue, an application ... > can use the DispatchMessage function to direct the system to send the ... DispatchMessage passes the window handle, ... > Are the character messages translated by TranslateMessage() posted to the message queue of thread of ProcessMessages, ...
    (microsoft.public.vc.language)
  • Re: CL implementation to process Windows messages
    ... similar to the idiomatic Win32 message pump loop? ... > GetMessage() ... > TranslateMessage() ... > DispatchMessage() ...
    (comp.lang.lisp)
  • Re: Bypass DispatchMessage
    ... TranslateMessage() takes keystroke messages ... passes them to the proper window procedure. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Do_Events()
    ... >Look in the WinApi guide for PeekMessage and GetQueueStatus... ... >used along with TranslateMessage and DispatchMessage to create a message ...
    (comp.lang.pascal.delphi.misc)