Solved

Refresh problem with CHtmlView

Posted on 2001-06-07
2
846 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
2 Comments
 
LVL 42

Accepted Solution

by:
sedgwick earned 100 total points
Comment Utility
simply override OnEraseBkgnd() and put this code:

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

good luck
0
 

Author Comment

by:fmichaud061597
Comment Utility
It worked, thank you!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now