Help and Support

PRB: ICustomDoc::SetUIHandler Causes Changes in Save As Dialog

Article ID:330441
Last Review:November 29, 2007
Revision:2.1
This article was previously published under Q330441

SYMPTOMS

After you call the ICustomDoc::SetUIHandler method, the Save As menu in Internet Explorer appears without the option to save as an MHT file and without the option to save as a Web package.

Back to the top

CAUSE

The Microsoft HTML parsing and rendering engine (MSHTML) default command handler, not the SHDOCVW component command handler, handles the Save As command. (The Shdocvw component implements core Internet Explorer and shell browser frames.) The Save As dialog in MSHTML that is implemented in Mshtml.dll does not contain support for the full Save As dialog that SHDOCVW provides. This is a design limitation in Internet Explorer.

Back to the top

RESOLUTION

Implement the IDocHostUIHandler interface through the Web browser control client site. Do not call SetUIHandler if the full Save As dialog is important. This means that you must host the Web browser control must be hosted, if it is not already hosted.

Back to the top

MORE INFORMATION

Before you call SetUIHandler, MSHTML routes the Save As command to SHDOCVW before MSHTML defaults to its own. Because SHDOCVW handles it, you see that the full Save As dialog and the command are not routed to the MSHTML default handler. When you call SetUIHandler, MSHTML uses your implementation of the IOleCommandTarget interface in your object that implements IDocHostUIHandler to handle the Save As command. MSHTML calls Exec, and then if you do not handle it, MSHTML uses its own handler.

Back to the top


APPLIES TO
Microsoft Internet Explorer 6.0

Back to the top

Keywords: 
kbprb KB330441

Back to the top

Article Translations

 

Related Support Centers

Other Support Options

  • Contact Microsoft
    Phone Numbers, Support Options and Pricing, Online Help, and more.
  • Customer Service
    For non-technical assistance with product purchases, subscriptions, online services, events, training courses, corporate sales, piracy issues, and more.
  • Newsgroups
    Pose a question to other users. Discussion groups and Forums about specific Microsoft products, technologies, and services.