• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1525
  • Last Modified:

Hook and modify Windows Messages (even under Windows CE)

Hi all,

At the moment I can hook windows messages under Windows CE using Compact Framework and
OpenNETCF SmartDevice Framework. I took the IMessageFilter Interface, derivied a class from it
an added an instance of this class to ApplicationEx's method AddMessageFilter.
What I want to do now, I want to change the messages's parameter and send them through. I
want to hook all key-pressed messages, change the key-parameter e.g. from <PgUp> to <Up> on
one place for my whole application. Is there any change to catch and change these parameters ?
What could the solution be under Desktop Framework 1.1 and with Compact Framework under
Windows CE ?

Thanks in advance,

Patrick
0
eltic
Asked:
eltic
1 Solution
 
puranik_pCommented:
First, I'm not expert in this.
There's a sample project given related to same here. (in fact, 3 projects)
http://bdn.borland.com/article/0,1410,30129,00.html

This got me thinking...
What if we catch the message from <PgUp> in a ByRef argument and change it to the message for desired key(<Up>)?

Hope it makes sense.
Pura
0
 
elticAuthor Commented:
Unfortunately, Borland's description (nearly) equals to the OpenNetCF Solution.
I also don't know why, but changing the ref - Argument doesn't works either.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now