Condividi tramite


CHtmlView::OnGetOptionKeyPath

Call this member function to get the registry key under which Internet Explorer or MSHTML stores user preferences.

virtual HRESULT OnGetOptionKeyPath( 
   LPOLESTR* pchKey, 
   DWORD dwReserved  
);

Parameters

  • pchKey
    Address of an LPOLESTR that receives the registry subkey string where the host stores its default options. This subkey will be under the HKEY_CURRENT_USER key. Allocate this memory using CoTaskMemAlloc. The calling application is responsible for freeing this memory using CoTaskMemFree. This parameter should always be initialized to NULL, even if the method fails.

  • dwReserved
    Reserved for future use. Not currently used.

Return Value

S_OK if successful, or S_FALSE otherwise. If S_FALSE, Internet Explorer or MSHTML will default to its own user options.

Remarks

Override OnGetOptionKeyPath to react to the GetOptionKeyPath notification from the Microsoft Web Browser control. See IDocHostUIHandler::GetOptionKeyPath in the Windows SDK for more information.

Requirements

Header: afxhtml.h

See Also

Reference

CHtmlView Class

Hierarchy Chart