
Subclassing a window in different process
wael,
It depends on what you need to do. Whether you only need to subclass a
specific windows or everywindows.
In the first case you can use regular subclassing, getting the windows
function and so on. The only thing is that the code must be in a DLL that
you place in the other process calling SetWindowsHookEx.
In the second case you still need the dll and a call to SetWindowsHookEx but
you must code everything in the callback function.
Fill free to cantact me for more information.
Alessandro
Quote:
> Hi everyone
> I would like to know how can I subclass a window in a different process,
to
> manipulate its behavior?
> I have some kind of idea that I have to use Windows Hooks, or subclassing
or
> both of them.
> but I am not sure how to do it?
> I know that most of the manipulation procedures should be in a DLL, that
> should be injected in the window process. but I don't know how.
> Can somebody please help me with this problem. Any hint or tip will be
> greatly appreciated, maybe a book name or address to a web site, or a even
> better some code samples.
> Best regards.