refreshing windows
-
I had an SDI with some dialogs and through user inputs in the dialogs, i show my graphics in the SDI view using OpengGL rendering.But I was wondering why windows doesn't auto-refresh the view for me because as my dialog is in front of my view, whenever the dialog is shifted or moved, a white patch of the dialog'outline will overlap onto my graphics in the view... I do not know how to refresh my view again in this case...can anyone help?
-
I had an SDI with some dialogs and through user inputs in the dialogs, i show my graphics in the SDI view using OpengGL rendering.But I was wondering why windows doesn't auto-refresh the view for me because as my dialog is in front of my view, whenever the dialog is shifted or moved, a white patch of the dialog'outline will overlap onto my graphics in the view... I do not know how to refresh my view again in this case...can anyone help?
You will have to re display ure image in this cse .Use OnPaint event handler for this. No Worries!
-
You will have to re display ure image in this cse .Use OnPaint event handler for this. No Worries!
thanx for replying. Can u elaborate on how i can re-display my image properly? My OpenGl coding was done in the dialog.cpp, then i should code the re-display in the view class OnPaint handler? I tried the following in the View class ONPAint message handler but unable to work: Void ProjectView:: OnPaint() { CPaintDC dc(this); InValidate(); UpdateWindow(); }