CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: CHtmlView class. Select text functionality works slowness in big file.

  1. #1
    Join Date
    Nov 2015
    Posts
    2

    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.

  2. #2
    Join Date
    Jun 2002
    Location
    Stockholm, Sweden
    Posts
    1,641

    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

  3. #3
    Join Date
    Nov 2015
    Posts
    2

    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

  4. #4
    VictorN's Avatar
    VictorN is online now Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    19,733

    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
  •  


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)