System.Windows.Forms.Message Definition

  • Thread starter Thread starter Samuel
  • Start date Start date
S

Samuel

Hi

I would like to handle every message except those originating by the mouse
(MouseMove, etc)

Is there a range of values that belong to the mouse


Thank you,
Samuel
 
Samuel said:
Thank you for that,

How can I access these values in the >.NET framework

If you have Visual Studio including VC++, you find them in the header
files mentioned in the docs, usually "winuser.h". Otherwise install the
Windows SDK that also includes the header files. Another source is
pinvoke.net (http://www.pinvoke.net/default.aspx/Constants.WM).

You can also output m.ToString inside IMessageFilter.PreFilterMessage (as
mentioned in the other thread) or override WndProc and perform the mouse
actions in question to find out which you want to handle or ignore.


Armin
 
Armin Zingler said:
If you have Visual Studio including VC++, you find them in the header
files mentioned in the docs, usually "winuser.h". Otherwise install the
Windows SDK that also includes the header files. Another source is
pinvoke.net (http://www.pinvoke.net/default.aspx/Constants.WM).

You can also output m.ToString inside IMessageFilter.PreFilterMessage (as
mentioned in the other thread) or override WndProc and perform the mouse
actions in question to find out which you want to handle or ignore.


Armin


Thank you for that
Samuel
 
Back
Top