开发者

About windows the painting cycle of a window

Why does windows se开发者_JAVA技巧parate the painting cycle into two message wm_paint and wm_ereasebackground, why not just one?


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/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜