summaryrefslogtreecommitdiff
path: root/plugins/IEView/src/external_funcs.cpp
diff options
context:
space:
mode:
authorMikalaiR <nikolay.romanovich@narod.ru>2016-01-22 13:03:56 +0000
committerMikalaiR <nikolay.romanovich@narod.ru>2016-01-22 13:03:56 +0000
commit3a09ce8ad3e0aa8bb97266def2f38e1295392d2d (patch)
treef8647364ccaab308145d095e82b32365a403e84e /plugins/IEView/src/external_funcs.cpp
parent4623f15a5a64425f2dc1883248b885c9ec8ff51b (diff)
IEView: set custom context menu handler from javascript
git-svn-id: http://svn.miranda-ng.org/main/trunk@16142 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/external_funcs.cpp')
-rw-r--r--plugins/IEView/src/external_funcs.cpp9
1 files changed, 9 insertions, 0 deletions
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)