erm, Where is PeekMessage?
What DLL?
I´m trying it:
[DllImport("Msgque.dll")]
extern static bool PeekMessage(out MessageWindow Msg, uint hWnd, uint
wMsgFilterMin, uint wMsgFilterMax, uint wRemoveMsg);
public static void ClearMessages()
{
MessageWindow msg = new MessageWindow();
while (PeekMessage(ref msg, 0, 0, 0, 1))
{
I get a 'System.NotSupportedException' exception in PeekMessage call.
hmn?
.tolemaC.
PeekMessage with PM_REMOVE. GetMessage will wait indefinitely if invoked
on
empty queue
Manually P/Invoke GetMessage and don't call DispatchMessage.
--
Chris Tacke, eMVP
Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net
DoEvents process messages and clears the queue but I don´t want to
process
messages, i want clear the queue only.
thank you
.tolemaC.
DoEvents will "clear the queue"
sorry:
I´m looking for something like Application.DoEvents() but it must
clear
"the"
queue.
.I.
how to clear the Message queue in a window or application?
I´m looking for something like Application.DoEvents() but it
must
clear
que
queue.
tolemaC