Should I be using a hook?

eatatj0s

New member
Joined
May 3, 2009
Messages
1
Programming Experience
1-3
I'm having a horrible time with this.... (using vb.net 2008)

I'm using createwindowex to create a button on an external window. I can use Spy++ to see all of the messages the button is sending to the parent window. The problem I'm having is catching these messages from the parent window.


I've been trying a lot of different methods, and just when I think one is working, something still isn't quite right. Right now, I am using a hook dll made with c#, and it seems to be working somewhat. It seems like it is a lot more than should be needed for what I'm doing.

I originally thought I could just use wndproc to catch all of the messages, but I found that it doesn't catch external windows messages(unless i'm doing something wrong).

Is there anyone that can point me in the right direction to create a button on an external window, then catch the messages when it is clicked, i would greatly appreciate it.
 
Back
Top