WM_PAINT

Started by
2 comments, last by bower12345 20 years, 4 months ago
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
Mikehttp://cs.wpunj.edu/~bowersom
Advertisement
Don''t worry about it. As long as you stay fullscreen, that is.
And the rockets' red glare, the bombs bursting in air,gave proof through the fight that our flag was still there.Oh say, does that star-spangled banner yet waveover the land of the free and the home of the brave?
As long as you pass them off to DefWndProc you should be fine.

Stay Casual,

Ken
Drunken Hyena
Stay Casual,KenDrunken Hyena
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.

This topic is closed to new replies.

Advertisement