Environment: MFC frame based SDI application Problem: After closing modal dialog boxes, the bitmap stays displayed/the window beneath doesn't repaint.
Dialog creation:
PortSettings Dlg;
Dlg.DoModal();
I've tried explicitly setting OnCancel()
for the dialog class,
void PortSettings::OnCancel()
{CDialog::OnCancel();}
tried calling RedrawWindow
from the parent window and the Dialog OnCancel
.
This issue happens for all the dialog boxes, and other modal windows that open (Like a file browser) I assume because I am using MFC I've somehow interfered with the underlying Window Proc but I'm not sure how to investigate or what to try.
Invalidate()
, which indirectly causes a redraw--but I've never had to do that for redrawing after a dialog was dismissed--in that case, it's automatic. – Jerry Coffin