• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 915
  • Last Modified:

Refresh problem with CHtmlView

My application uses CHtmlView for its main view. When I open a document, word, excel, etc, in my view all is fine, but when the window is resized there is a lot of flicker and at the end, the document does not refresh.

If you want a sample application, take AppWizard and build an application that has CHtmlView for its view and open an excel sheet. Try resizing the window.

Thank you!
1 Solution
Meir RivkinFull stack Software EngineerCommented:
simply override OnEraseBkgnd() and put this code:

BOOL CHTMLView::OnEraseBkgnd(CDC* pDC)
return TRUE;

good luck
fmichaud061597Author Commented:
It worked, thank you!
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now