Home All Groups Group Topic Archive Search About
Author
9 Aug 2006 2:42 PM
newscorrespondent
I set up an IMessageFilter in an attempt to trap the WM_QUIT message from a
plain C# windows forms application. I never get the WM_QUIT message. How
come?

I also get a number of messages that are way outside of the windows message
range.
(C0F0, C0F3, 2100) and others. I am guessing that these are .NET messages.
Whatever they are where are they documented and what keyword can I use to
search and find them?

Thanks

Author
10 Aug 2006 5:37 PM
Claes Bergefall
<newscorrespond***@charter.net> wrote in message
news:3vmCg.8$PZ4.0@newsfe04.lga...
>I set up an IMessageFilter in an attempt to trap the WM_QUIT message from a
> plain C# windows forms application. I never get the WM_QUIT message. How
> come?

Because the message loop basically looks like this:

while (GetMessage(.....))
{
    if (ProcessFilters())
        continue;

    TranslateMessage
    DispatchMessage
}

A WM_QUIT message casuses the loop to quit before it calls any filters.


> I also get a number of messages that are way outside of the windows
> message
> range.
> (C0F0, C0F3, 2100) and others. I am guessing that these are .NET messages.
> Whatever they are where are they documented and what keyword can I use to
> search and find them?

I don't think they are documented

   /claes

AddThis Social Bookmark Button