-
November 19th, 2015, 05:51 AM
#1
CHtmlView class. Select text functionality works slowness in big file.
Hello,
Could you please advice, how I can resolve issue with CHtmlView class or replace it.
When I open big *.html file(>200Kb) in my application, "select text functionality" works slowly. I mean "Ctrl+A" and "select text functionality" with left button only in the end of document. Select functionality with left button on the beginning of document works normally always(Even after "select text functionality" worked slowness at the end of page).
I downloaded MFCIE sample from MSDN. "select text functionality" works slowness too in this sample. And "select functionality" works exactly as in my program.
(I built it and start in MSVS 2005. MFCIE Sample: Demonstrates the MFC CHtmlView and CReBar Classes).
In both cases program's class inherit CHtmlView class. And new class uses for open *.html file from my HDD. Program does not handle WM_LBUTTONDOWN event(or pressure Ctrl+A). This process is handled by system in both cases.
I would be grateful for any advice.
-
November 20th, 2015, 05:54 AM
#2
Re: CHtmlView class. Select text functionality works slowness in big file.
Try visual studio 2015, maybe it comes with an updated CHtmlView.
If that does not help, I would forget about the CHtmlView and try to find a third party replacement.
Nobody cares how it works as long as it works
-
March 16th, 2017, 05:42 AM
#3
Re: CHtmlView class. Select text functionality works slowness in big file.
The problem related to IE7 engine.
IE7 this is default engine for rendering HTML for WebBrowser controls.
We can change engine version by setting
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION
or
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION
DWORD32 value with application name or * (for all applications) should be created
We should set 8000 or high
-
March 16th, 2017, 08:26 AM
#4
Re: CHtmlView class. Select text functionality works slowness in big file.
Thank you for sharing this solution/workaround!
Victor Nijegorodov
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|