Advertisement

12.08.2003 at 12:12PM PST, ID: 20819854
[x]
Attachment Details

How to use hooks to know when a message is DONE being processed

Asked by bjornsone in Windows Programming

Tags: wm_paint

I am using hooks to detect painting events in another program.
I want to then capture the screen after the painting is done.
My hooks detect the WM_PAINT message before it is done painting,
but how can I know when the application is finished processing
this message??  My current approach lets me capture the screen
before the painting is even started, but I want to capture it right
after it finishes.

I tried just waiting an arbitrary time, but sometimes I wasted
time waiting too long and other times I didn't really wait long
enough.Start Free Trial
 
Loading Advertisement...
 
[+][-]12.08.2003 at 01:16PM PST, ID: 9899556

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.08.2003 at 08:22PM PST, ID: 9901785

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]12.09.2003 at 07:07AM PST, ID: 9904567

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Windows Programming
Tags: wm_paint
Sign Up Now!
Solution Provided By: rbohac
Participating Experts: 3
Solution Grade: A
 
 
[+][-]12.09.2003 at 07:08AM PST, ID: 9904573

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.09.2003 at 02:17PM PST, ID: 9908095

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]12.09.2003 at 02:25PM PST, ID: 9908153

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]12.09.2003 at 03:05PM PST, ID: 9908331

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32