message filters

  • Thread starter Thread starter Neil Stevens
  • Start date Start date
N

Neil Stevens

Hi All,

I am in the process of creating a message filter for an application that i
am writing, this is really just a question for information on the LParam
value of the PreFilterMessage method.

Now, i know that this parameters value depends on the message, but is there
any information anywhere that details what the structure of the LParam
parameter is for each message. I know that the WM_CREATE messages LParam
value is a CREATESTRUCT structure, but i don't know any others.

I would ideally like to know the structure of the LParam value for key
messages and mouse messages as these are what i will be globally handling in
my application.

Any help or information will be greatly appreciated.

Thanks in advance
Neil
 
Thanks Lars, but i already have the values for all the windows messages,
taken from the C++ header files.

What i'm looking for is the structure definitions for the key and mouse
messages, these are the structs that are sent in the LParam value of the
Message structure.

For example, byte 24 of the LParam value for a KeyDown message defines which
Ctrl, Shift or Alt key is pressed (Left or Right key), i know that there are
other values such as the key state and the key code and the repeat count.

Found this in the .NET MSDN
ms-help://MS.VSCC.v80/MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.WIN32COM.v10.en/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputmessages/wm_keydown.htm

Does anyone know where i can find the structure definitions for the key and
mouse messages, or can anyone tell me what they are.

Thanks in advance
Neil
 
Neil said:
Thanks Lars, but i already have the values for all the windows messages,
taken from the C++ header files.

What i'm looking for is the structure definitions for the key and mouse
messages, these are the structs that are sent in the LParam value of the
Message structure.

For example, byte 24 of the LParam value for a KeyDown message defines which
Ctrl, Shift or Alt key is pressed (Left or Right key), i know that there are
other values such as the key state and the key code and the repeat count.

Found this in the .NET MSDN
ms-help://MS.VSCC.v80/MS.MSDNQTR.v80.en/MS.MSDN.v80/MS.WIN32COM.v10.en/winui/winui/windowsuserinterface/userinput/keyboardinput/keyboardinputreference/keyboardinputmessages/wm_keydown.htm

You are misreading that page (btw URLs to the internet documentation
are more helpful as different people's local MSDN documentation will
have different URLs). It is *bit* 24 of lParam that carries that
meaning. lParam is a simple 32-bit value, not a pointer to a structure.
Does anyone know where i can find the structure definitions for the key and
mouse messages, or can anyone tell me what they are.

You already have the MSDN documentation that tells you all you need.
Where a message refers to a structure, the documentation page will link
to the appropriate structure (as with your WM_CREATE example). Where it
doesn't, it doesn't.
 
Back
Top