Philippe,
You should be able to change the HWnd property of the structure to the
handle of the window you want to route the messages to. Since the
PreFilterMessage method takes the structure by ref, any changes you make to
it will stick after the method exits.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Hi
> I want to reroute messages with a certain code to a specific control.
[quoted text clipped - 10 lines]
>
> Philippe (C# student)
P. Meyer - 22 May 2007 21:38 GMT
Thanks Nicholas.
Did not try yet but it's helpful.
Philippe
"Nicholas Paldino [.NET/C# MVP]" <mvp@spam.guard.caspershouse.com> a écrit
dans le message de news:
5F566EA4-B70F-4A61-BB26-4A3D9A77948A@microsoft.com...
> Philippe,
>
[quoted text clipped - 17 lines]
>>
>> Philippe (C# student)