-
As noone did reply or even view my last thread, I have to post this again.
HOW DO I CHANGE THE DC TO AN EXTERNAL APPLICATIONS PICTUREBOX OR WHATEVER, THAT HAVE A DC??!?!?!? I have used Setpixelv to put a dot into it, and it shows up in that app. Then it disappears next time somethings overlapping it
-
You need to subclass it and trap the WM_PAINT Message, when the window gets the WM Paint message it will change the dc to whatever the APP thinks it should look like, when you process the message call the default window procedure and then change the DC to what you want it to look like.
Hope this helps
-
Sam,
If you could tell me how to subclass another applications window, or even place a hook with VB, I would be very grateful.
I didn't manage until now, and was under the impression that vb could not do it.
-
Aww Come on It's 11'o'Clock at night I'm not up for writing a huge essay on subclassing and I don't want to give you a half arsed explanation cos I really messed my machine up by crashing it every 10 mins trying to learn subclassing. I'm writing an article on it Which I'm gonna post up on this site or another similar one so I'll Point you towards it when It's finished.