diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-22 13:03:56 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-01-22 13:03:56 +0000 |
commit | 3a09ce8ad3e0aa8bb97266def2f38e1295392d2d (patch) | |
tree | f8647364ccaab308145d095e82b32365a403e84e /plugins/IEView/src/IEView.h | |
parent | 4623f15a5a64425f2dc1883248b885c9ec8ff51b (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/IEView.h')
-rw-r--r-- | plugins/IEView/src/IEView.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/plugins/IEView/src/IEView.h b/plugins/IEView/src/IEView.h index bb464d45e0..0f6e32c71c 100644 --- a/plugins/IEView/src/IEView.h +++ b/plugins/IEView/src/IEView.h @@ -443,6 +443,7 @@ private: WCHAR* selectedText;
bool isContactSet;
MCONTACT hContact;
+ wchar_t *wszContextMenuHandler;
// IUnknown
STDMETHODIMP QueryInterface(REFIID riid, PVOID *ppv);
@@ -508,6 +509,8 @@ private: STDMETHOD(SetZoneMapping)(DWORD dwZone, LPCWSTR lpszPattern, DWORD dwFlags);
STDMETHOD(GetZoneMappings)(DWORD dwZone, IEnumString **ppenumString, DWORD dwFlags);
+ VARIANT IEView::CallJScript(const CMString strFunc, size_t nPCount, const CMString strArgs, ...);
+
IHTMLDocument2 *getDocument();
WCHAR* getHrefFromAnchor(CComPtr<IHTMLElement> element);
WCHAR* getSelection();
@@ -558,5 +561,10 @@ public: static void release();
static void setOptions();
+ inline void Set_ContextMenuHandler(const wchar_t* handler)
+ {
+ replaceStrW(wszContextMenuHandler, handler);
+ }
+
};
#endif
|