Click to return to the Reusing Browser Technology home page    
IDocHostShowUI::ShowHelp ...     IDocHostUIHandler Interfa...     IDocHostShowUI Interface    
Web Workshop  |  Reusing Browser Technology

IDocHostShowUI::ShowMessage Method


Called by MSHTML when it needs to display a message box.

Syntax

HRESULT ShowMessage( 
    HWND hwnd,
    LPOLESTR lpstrText,
    LPOLESTR lpstrCaption,
    DWORD dwType,
    LPOLESTR lpstrHelpFile,
    DWORD dwHelpContext,
    LRESULT *plResult
);

Parameters

hwnd
Handle to the owner window.
lpstrText
Address of a string containing the text for the message box.
lpstrCaption
Address of a string containing the caption for the message box.
dwType
DWORD containing the flag type (taken from the MessageBox MB_xxxx constants).
lpstrHelpFile
Address of a string containing the Help file name.
dwHelpContext
DWORD containing the Help context identifier.
plResult
Address of an LRESULT which indicates what button the user clicked(taken from the MessageBox IDxxx constants).

Return Value

Returns one of the following values:

S_OK Host displayed its UI. MSHTML will not display its message box.
S_FALSE Host did not display its UI. MSHTML will display its message box.


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.