From 3a09ce8ad3e0aa8bb97266def2f38e1295392d2d Mon Sep 17 00:00:00 2001 From: MikalaiR Date: Fri, 22 Jan 2016 13:03:56 +0000 Subject: IEView: set custom context menu handler from javascript git-svn-id: http://svn.miranda-ng.org/main/trunk@16142 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/IEView/src/external_funcs.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugins/IEView/src/external_funcs.cpp') diff --git a/plugins/IEView/src/external_funcs.cpp b/plugins/IEView/src/external_funcs.cpp index 6550b928fd..9eb72c5db0 100644 --- a/plugins/IEView/src/external_funcs.cpp +++ b/plugins/IEView/src/external_funcs.cpp @@ -2,6 +2,15 @@ namespace External { + + HRESULT IEView_SetContextMenuHandler(IEView *self, DISPPARAMS *pDispParams, VARIANT *pVarResult) + { + if (pDispParams->cArgs < 1 || pDispParams == nullptr) + return E_INVALIDARG; + self->Set_ContextMenuHandler(mir_wstrdup(pDispParams->rgvarg[0].bstrVal)); + return S_OK; + } + HRESULT db_get(DISPPARAMS *pDispParams, VARIANT *pVarResult) { if (pDispParams->cArgs < 3) -- cgit v1.2.3