PC Review


Reply
Thread Tools Rate Thread

IMessageFilter

 
 
newscorrespondent@charter.net
Guest
Posts: n/a
 
      9th Aug 2006
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
 
Reply With Quote
 
 
 
 
Claes Bergefall
Guest
Posts: n/a
 
      10th Aug 2006
<(E-Mail Removed)> wrote in message
news:3vmCg.8$(E-Mail Removed)...
>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


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IMEssageFilter =?Utf-8?B?SmFtZXM=?= Microsoft Dot NET Compact Framework 6 20th May 2005 07:53 AM
Need more help with OpenNETCF, IMessageFilter problem vbmark Microsoft Dot NET Compact Framework 7 8th Feb 2005 05:32 PM
What am I doing wrong with IMessageFilter? vbMark Microsoft Dot NET Compact Framework 7 3rd Feb 2005 03:47 PM
IMessageFilter.PreFilterMessage Method Tyler Microsoft Dot NET Framework Forms 1 6th Oct 2003 09:33 AM
MDI - Imessagefilter See Sharp Microsoft C# .NET 1 31st Jul 2003 04:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:11 AM.