I have a dialog application with IE webbrowser control 3.02.
I can navigate, refresh,...etc.
The problem is whenever My dialog is minimized or covered by other windows, the browser control is not re-painted when my dialog gets the focus or maximized. I get grey color in the control space.
That means my dialog's OnPaint() is updating all controls execpt webbrowser. Does any one know why and how to force my webbrowser control to be updated when the dialig gets the focus?
Here is the code I added to the end of OnPaint() and did not work (I have the problem with ond without adding that code):
CWebBrowser* pWeb = (CWebBrowser*)GetDlgItem(IDC_EXPLORER1);