Archived

This topic is now archived and is closed to further replies.

WM_PAINT

This topic is 5125 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Just a quick question, In full screen exclusive mode with DirectDraw 7, is there a need to worry about a WM_PAINT message? Can this message occur in full screen exclusive mode? Or is this only something that needs to be worried about in windowed mode? Thanks, Mike

Share this post


Link to post
Share on other sites
Technically, you should because full-screen operation is exactly the same as windowed except that your window has only client area and takes up the whole screen. As such, there are scenarios under which the contents of your client area may be overwritten, though they''re rare. In both windowed and full-screen modes, WM_PAINT handling isn''t truly necessary, assuming that you repaint your client area at a regular interval. But your app will look better if you handle it. So, I recommend that you handle it—it''s sufficiently trivial to do.

Share this post


Link to post
Share on other sites