Solved

Refresh problem with CHtmlView

Posted on 2001-06-07
2
887 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:
sedgwick earned 100 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

Suggested Solutions

Title # Comments Views Activity
List out all word 7 338
substring method in java 1 137
twoTwo  challenge 35 113
Dell Alienware Graphics Amplifier Driver for non-Alienware systems 18 476
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

726 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