Archived

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

coda_x

refreshing windows

Recommended Posts

I have an SDI window with 2 dialogs. These dialogs appear in front of my SDI window and when i close or move these dialogs, the graphics that appear in my SDI view become obscured by a white patch of the dialog''s outline, thus my graphics are blocked..but I was wondering why windows have no automatic refreshing of my screen, i was using MFC with OpenGl and need to solve this problem urgently...anybody can help?

Share this post


Link to post
Share on other sites
You need to tell the window to refresh/invalidate. Or you can set a timer to refresh/invalidate after a specified number of milliseconds

---
K-1 Productions: Come visit us here.

Share this post


Link to post
Share on other sites
is it that i call the invalidate function in the view class.cpp? My Opengl coding were done in the dialog.cpp... does the invalidate function re-draw my graphic everytime i try to shift away the dialog that is blocking the view? was wondering is there a difference between refreshing the view and redrawing the view...hope u can clarify. thank you

Share this post


Link to post
Share on other sites