473,406 Members | 2,451 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

message filters

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
Oct 31 '05 #1
4 1395
Hi Neil,

last week i had a smilar problem. Which we discussed
in the german c# newsgroup, but as result there is a
"full" list of all windows messages, now. Maybe that helps.

http://dzaebel.net/WM_Msg_NET.htm

Cheers
Lars Behrmann

_________________
Nothing is impossible. UML is the key for all your problems.
AODL - Make your .net apps OpenOffice ready
http://aodl.sourceforge.net/

Neil Stevens schrieb:
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


Oct 31 '05 #2
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

"Lars Behrmann" <la***********@web.de> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi Neil,

last week i had a smilar problem. Which we discussed
in the german c# newsgroup, but as result there is a
"full" list of all windows messages, now. Maybe that helps.

http://dzaebel.net/WM_Msg_NET.htm

Cheers
Lars Behrmann

_________________
Nothing is impossible. UML is the key for all your problems.
AODL - Make your .net apps OpenOffice ready
http://aodl.sourceforge.net/

Neil Stevens schrieb:
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

Oct 31 '05 #3

Neil Stevens wrote:
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.

Thanks in advance
Neil

"Lars Behrmann" <la***********@web.de> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Hi Neil,

last week i had a smilar problem. Which we discussed
in the german c# newsgroup, but as result there is a
"full" list of all windows messages, now. Maybe that helps.

http://dzaebel.net/WM_Msg_NET.htm

Cheers
Lars Behrmann

_________________
Nothing is impossible. UML is the key for all your problems.
AODL - Make your .net apps OpenOffice ready
http://aodl.sourceforge.net/

Neil Stevens schrieb:
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


Oct 31 '05 #4
Larry Lard wrote:
lParam is a simple 32-bit value, not a pointer to a structure.


Not according to this doc:

http://msdn.microsoft.com/library/de.../wm_create.asp
<QUOTE>
Parameters

wParam
This parameter is not used.
lParam
Pointer to a CREATESTRUCT structure that contains information
about the window being created.
</QUOTE>

Oct 31 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: shumaker | last post by:
I'm trying to defeat persistant filters with the following code in Close, and also in Unload: Private Sub Form_Close() DoCmd.RunCommand acCmdRemoveFilterSort Me.FilterOn = False Me.OrderByOn =...
4
by: Aaron | last post by:
Hello all. I am trying to avoid my users from saving filters. The fact is that after they use or change a filter, when closing the form Access would ask: "Do you want to save changes to the...
6
by: TJO | last post by:
Below is some sample code that fades div tags that is not working in IE 6.0.29 on xp sp2. Can anyone help see why the if(ie5) document.getElementById(divID).filters.alpha.opacity lines are not...
1
by: Dieter Vanderelst | last post by:
Hello, I'm trying to access the Filters-Dll provided by the filters-project (http://filters.sourceforge.net/index.htm). Following the advice I got from the Python list -thank you for that-, I...
5
by: dananrg | last post by:
I would like to learn how to roll my own filter ala early 90's filters like Jive, Fudd, Kraut, Moron, etc, that take text as an input, and re-writes the text adding general hilarity of various...
7
by: raghunath | last post by:
Hi, I am working on a form which currently does not show data after it has opened. but i can see the data only when i remove the filters from the form, after opening the form form displays...
6
by: smcdonald | last post by:
I have a report that opens up using a pretty complex query. I then pop up a form with combo boxes so the user can apply a filter to the existing report and then refresh the report. I need to export...
0
by: kucol | last post by:
Hi guys, I wanted to ask you for help as I am struggling with it second evening already... I have got tables DEVICES and PARTS. One device can consist of multiple parts. But... I have...
5
by: favor08 | last post by:
have a mainform called PendingsMain and a subform called PendingsSub. You can filter the subform by different filters and this works fine. i want to create a report that will print out the...
0
by: CatchSandeepVaid | last post by:
We all know that one-to-one associations are non-lazly fetched but during this fetching the filters are not applied. I debugged hibernate code and found that hibernate finally calls...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.