mfc - Flicker between two dialogs shown one after another -


cmaindialog::dosomething() {         cmydialog1 dlg1;     dlg1.domodal();      cmydialog2 dlg2;     dlg2.domodal(); } 

the problem after dlg1 returns, parent dialog briefly shows before dlg2 displayed causing flicker. undesirable, how can rid of this? used setredraw(false) in above function didn't help.

in resource editor, go properties cmydialog1 , make dlg1 invisible.

when ready show dlg1, use dlg1.showwindow(sw_show).


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -