a***@aol.com
2010-12-01 09:58:12 UTC
I use AllocateHWnd to provide a separate window for message processing
from some hardware (& it works fine).
But in a procedure during execution of the main application I want to
ensure that all messages sent to that separate window have been
processed before moving on to another line of code.
In the main application I would use Application.ProcessMessages to
handle messages to the application, but does this ensure that the
messages to the separate window have all been handled.
AFAICS the answer is "No". AllocateHwnd calls CreateWindowEx without
specifying a parent window, so I would think it is on its own,
separate from the PeekMessage called by APP.ProcMess.
Any comments or direct help welcomed.
Alan Lloyd
from some hardware (& it works fine).
But in a procedure during execution of the main application I want to
ensure that all messages sent to that separate window have been
processed before moving on to another line of code.
In the main application I would use Application.ProcessMessages to
handle messages to the application, but does this ensure that the
messages to the separate window have all been handled.
AFAICS the answer is "No". AllocateHwnd calls CreateWindowEx without
specifying a parent window, so I would think it is on its own,
separate from the PeekMessage called by APP.ProcMess.
Any comments or direct help welcomed.
Alan Lloyd