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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top