Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Refresh problem with CHtmlView

Posted on 2001-06-07
2
Medium Priority
?
906 Views
Last Modified: 2013-11-20
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!
0
Comment
Question by:fmichaud061597
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 42

Accepted Solution

by:
Meir Rivkin earned 400 total points
ID: 6163855
simply override OnEraseBkgnd() and put this code:

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

good luck
0
 

Author Comment

by:fmichaud061597
ID: 6164157
It worked, thank you!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question