Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. CHtmlView and Windows 7

CHtmlView and Windows 7

Scheduled Pinned Locked Moved C / C++ / MFC
questionlinuxhardwarealgorithmscryptography
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Member 8109560
    wrote on last edited by
    #1

    Hello! I've got a problem with a CHtmlView derived View on Windows 7. The CHtmlView derived View is embedded in a CTabView with the following code:

    int COSTabbedView::OnCreate(LPCREATESTRUCT lpCreateStruct)
    {
    if (CTabView::OnCreate(lpCreateStruct) == -1)
    return -1;

    AddView (RUNTIME\_CLASS (CResultView), \_T("Results"), 100);
    AddView (RUNTIME\_CLASS (CBrowserView), \_T("Certificate"), 101);  
    
    return 0;
    

    }

    The view itself is initialized by:

    void CBrowserView::OnInitialUpdate()
    {
    CHtmlView::OnInitialUpdate();
    Navigate2(_T("http://www.google.de"));
    }

    On a Windows XP machine this works fine. The view displays the requested page. On Windows 7 the status bar of my application says something like "Downloading from www.google.de" and then a new Internet Explorer window will open and display the site but not with "www.google.de" in the address bar, but the path of the temporary downloaded file (!?). I've been searching around for several days now and found out at least one interesting thing: When I use Spy++ on WinXP I see the following windows below my view window: Shell Embedding + Shell DocObject View + Internet Explorer_Server On Windows 7 the "Shell DocObject View" and the "Internet Explorer_Server" window are missing. So I debugged into the creation of the CHtmlView window but they both behave the same on Win7 and XP. Does anyone have a hint what is going wrong here?

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups