wndproc override

  • Thread starter Thread starter cs
  • Start date Start date
C

cs

I have been playing around with overriding the wndproc method on a winform.
Now I am wondering, can you override the winproc method on any window even
if they arent a .net widnow? I see some example on the nativewindow class
but it didnt work when I pointed it at the windowhandle of a window that
wasnt my own!
Any ideas on how to do this?
 
Using NativeWindow should work for windows created in your own
process.

Handling messages for windows in other processes is non-trivial, it
requires using hooking or code injection.



Mattias
 
No this is one of those things you should use native code for if you
really have to do it.



Mattias
 
Back
Top