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
M

Member 8109560

@Member 8109560
About
Posts
8
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • CHtmlView and Windows 7
    M Member 8109560

    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?

    C / C++ / MFC question linux hardware algorithms cryptography

  • CHtmlView Windows 7 issue
    M Member 8109560

    Same behavior when specifying my window as target. X|

    C / C++ / MFC help html cryptography

  • CHtmlView Windows 7 issue
    M Member 8109560

    How do I get my window name? Is it the one in the title bar?

    C / C++ / MFC help html cryptography

  • CHtmlView Windows 7 issue
    M Member 8109560

    I've just tried to call Navigate2 in the CHtmlView and the IWebBrowser2 with all the same behavior. I come to think that it might be some user permissions thing on Windows 7. Maybe my app is not allowed to open websites? Does anyone know which permissions have to be granted? I've checked the I[Internet Explorer\Main\FEATURE_...] stuff but did not find something appropriate. I had a look on the process creation and following happened: After my Navigate2 call an iexplore process was created and this one created another iexplore process that then showed my page.

    modified on Thursday, August 25, 2011 3:16 AM

    C / C++ / MFC help html cryptography

  • CHtmlView Windows 7 issue
    M Member 8109560

    Thanks again. Checked the registry value: was OK. Checked on another Win7 system: same behaviour. Created a new blank SDI-App with a CHtmlView derived View. Same code like in my original app:

    CHtmlViewTest::OnInitialUpdate()
    {
    CHtmlView::OnInitialUpdate();
    Navigate2(_T("http://www.codeproject.com"));
    }

    The source code of the page is opened in notepad. If I use a local html file, it is displayed correctly.

    C / C++ / MFC help html cryptography

  • CHtmlView Windows 7 issue
    M Member 8109560

    Thanks for your help, but still no luck. Implemented a handler for the NewWindow3 event but it seems that the event is not fired. Tried with Navigate2("http://www.codeproject.com") but same behaviour (source code shown in notepad). When trying to open local file it is downloaded to temporary internet files and then opened in IE.

    C / C++ / MFC help html cryptography

  • CHtmlView Windows 7 issue
    M Member 8109560

    Thanks for your suggestions but I don't get it working. I've tried with all of the TargetFrameNames ("_self", "_top", "_parent") - no effect. For the BrowserNavConstants therer are several flags to open the file in a new window, tab ... but no one that prevents a new window explicitly. Another strange observation: when trying to open a URL (http://www.google.de/) it wont't show the rendered site but the source of the site in notepad.

    C / C++ / MFC help html cryptography

  • CHtmlView Windows 7 issue
    M Member 8109560

    Hello, I have a (maybe small) problem that is driving me mad. I am using a CHtmlView derived class to display a html file that is stored locally on the PC. I'm using Navigate2() for that. On Windows XP machines everything works fine but Windows 7 always opens a new IExplorer window instead of displaying the file in my view. I tried to override OnNewWindow2() but the according event does not occur. I use the following code in the OnInitialUpdate() function of the view:

    CString fileName = theApp.m_sSettingsPath + CString("Certificate\\certificate.htm");
    Navigate2(fileName);

    I've also tried the "file://" syntax, but same behaviour. Thank's for your help, Ralf

    C / C++ / MFC help html cryptography
  • Login

  • Don't have an account? Register

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