IMessageFilter - Message.Msg: Property Value and Meaning

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

The .NET Framework documentation refers you to the Platform SDK documentation
reference located in the MSDN library to understand the available
Message.Msg, Message.LParam, and Message.WParam values.

Could someone point me in the correct direction to find this documentation?
When I look on the MSDN site, there are many SDK documents, so I do not know
which one to download.

thanks in advance.
 
Hi,

Off the top of my head:

Msg - the numeric code of the message (each Windows message has a uniqie
numeric code defined by a corresponding WM_... constant in Platform SDK
header files, for example, WM_CLOSE or WM_PAINT).

If you think of a message as of a Windows API-level event, then you can
think of LParam and WParam as of the event arguments. Unlike .NET events
where it is recommended to derive all event argument classes from EventArgs,
in Windows API, all messages use the same fixed number of arguments, and the
exact meaning of each argument varies from message to message.

For example, for the WM_MOVE message, LParam contains the x and y
coordinates of the new position of the window's upper left corner packed
into a 32-bit unsigned integer.

So, for the Msg value, you can refer to a number of documents on Windows
messages and notifications (WM_...)
And for the LParam and WParam, you will need to refer to the docs on a
particular message.
 
The .NET Framework documentation refers you to the Platform SDK
documentation
reference located in the MSDN library to understand the available
Message.Msg, Message.LParam, and Message.WParam values.

Could someone point me in the correct direction to find this
documentation?
When I look on the MSDN site, there are many SDK documents, so I do not
know
which one to download.

I don't think there's a single document with a list of all messages. rather,
there are disjoint groups of messages described in various places in msdn.
take a look here:

http://msdn.microsoft.com/library/en-us/winui/winui/windowsuserinterface/windowing.asp

in the tree structure you can find detailed description of windows messages
(windows/windows reference/messages) as well as other messages (for example
timer or mdi messages).

other messages are described elsewhere, for example gdi messages are
described here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/gdi/pantdraw_88ac.asp

I hope this helps you.

Wiktor Zychla
 
Wiktor and Dmytro,

I was expecting one single document that had all the meanings...a wrong
assumption on my part. I will use the links provided.
Thank you for helping!
 
Back
Top