IMessageFilter

  • Thread starter Thread starter newscorrespondent
  • Start date Start date
N

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
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top