简体   繁体   中英

About windows the painting cycle of a window

Windows为什么将绘画周期分为两个消息wm_paint和wm_ereasebackground,为什么不只是一个?

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/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM