🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Tell DirectDraw to re-draw Windows Surface

Started by
3 comments, last by GameDev.net 24 years, 8 months ago
this redraws entire screen:
InvalidateRect(NULL, NULL, FALSE);

------------------
http://members.xoom.com/mutex0


Advertisement
Thanks mutex,
That cleared up(no pun intended) the refreshing the screen problem, but in full-screen mode, when the mouse goes over the Taskbar's(and only the Taskbar's) toolbar buttons, the button is drawn onto the primary surface. I think it is because windows still has the address of the primary surface. I clear both the front and back-buffers at the beginning, but I don't draw to them yet. Will this go away if I am drawing to the surfaces every frame?
Thanks mutex, it worked!
Hi

Sorry about the other confusing message. (Note to moderator: You can delete the other message from "Confused", titled "How do you provide Alt-Enter FullScreen")

I decided to re-prase that message with new info. I am providing the ability in my game to switch between Full-Screen flipping and Windowed mode with DirectDraw using the Alt-Enter key combination. The trouble begins when you are in full-screen mode. If the cursor goes over a toolbar button(on the GDI, but not visible), it pops into view. Also, when you press Alt-Enter again, the GDI surface is not re-drawn. How do I tell Windows or DirectDraw to redraw the GDI when I press Alt-Enter?

about how the taskbar buttons are popping up in fullscreen, this shouldn't happen. make sure your window has always on top flag, which is WS_EX_TOPMOST, or you can use SetWindowPos and pass HWND_TOPMOST.

oh and you're welcome =)

------------------
http://members.xoom.com/mutex0


This topic is closed to new replies.

Advertisement