Solved

Refresh problem with CHtmlView

Posted on 2001-06-07
2
881 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
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 131
if loop in java 3 153
maven archtype selection in eclipse 1 57
Not needed 13 119
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…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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 …

860 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