Add context menu enabling and disabling to wxWebView, all backends supported.
Closes #14789. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@73326 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -100,7 +100,7 @@ bool wxWebViewIE::Create(wxWindow* parent,
|
||||
m_webBrowser->put_RegisterAsBrowser(VARIANT_TRUE);
|
||||
m_webBrowser->put_RegisterAsDropTarget(VARIANT_TRUE);
|
||||
|
||||
m_uiHandler = new DocHostUIHandler;
|
||||
m_uiHandler = new DocHostUIHandler(this);
|
||||
|
||||
m_container = new wxIEContainer(this, IID_IWebBrowser2, m_webBrowser, m_uiHandler);
|
||||
|
||||
@@ -1549,7 +1549,10 @@ HRESULT wxSTDCALL DocHostUIHandler::ShowContextMenu(DWORD dwID, POINT *ppt,
|
||||
wxUnusedVar(ppt);
|
||||
wxUnusedVar(pcmdtReserved);
|
||||
wxUnusedVar(pdispReserved);
|
||||
return E_NOTIMPL;
|
||||
if(m_browser->IsContextMenuEnabled())
|
||||
return E_NOTIMPL;
|
||||
else
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
HRESULT wxSTDCALL DocHostUIHandler::GetHostInfo(DOCHOSTUIINFO *pInfo)
|
||||
|
||||
Reference in New Issue
Block a user