Why does windows separate the painting cycle into two message wm_paint and wm_ereasebackground, why not just one?
Why does windows separate the painting cycle into two message wm_paint and wm_ereasebackground, why
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is still from the good old ways where WM_PAINT could have been too slow. It was better to have at least the background drawn. It is far less important today.
You can use the default implementation which just draws the background with the window’s default background brush. Alternatively, you can just ignore it and use WM_PAINT for all your drawing code.
I think there was an article by Raymond Chen, but I can’t find it now.
http://blogs.msdn.com/b/oldnewthing/