Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wierd Painting that i certainly don't understand!

Status
Not open for further replies.

AndyHollywood

Programmer
Oct 7, 2001
30
GB
Hello

I'm using a program that deploys system wide hooks and reports on what they intercept in a window! This part works but while it is painting the required info in the window, as soon as the cursor moves out of the program window, say onto the desktop or another application the painting then starts at the top left hand side of the desktop, and ceases in the window, on moving back into the window the painting startes in the window and stops on the desktop!

I'm not brilliant at c++ and would just like it to paint in the window and update continuosly no matter which window your in!

I've enclosed my code which containt two projects one which creates the dll, which has to be copied into the main progs debug folder to work!

How do i get the painting to only take place in the window of my application?

Cheers in advance

Andy

Code at:
 
Well, a global hook is loaded into every process, and can be called by pretty well any thread in the system. If you're writing from the dll I guess it could go almost anywhere. (Haven't looked at the code). :) Hope that this helped! :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top