From 328f3691c1a59fe92104d15a088293ef9d59d44d Mon Sep 17 00:00:00 2001 From: Piotr Piastucki Date: Mon, 10 Aug 2015 12:16:50 +0000 Subject: Fixed MSN IEEmbed window to support accelerator keys. git-svn-id: http://svn.miranda-ng.org/main/trunk@14896 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/MSN/src/msn_ieembed.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'protocols/MSN/src/msn_ieembed.h') diff --git a/protocols/MSN/src/msn_ieembed.h b/protocols/MSN/src/msn_ieembed.h index 76442b691d..2726fced13 100644 --- a/protocols/MSN/src/msn_ieembed.h +++ b/protocols/MSN/src/msn_ieembed.h @@ -77,9 +77,9 @@ public: STDMETHODIMP_(void)FileDownload(VARIANT_BOOL*); }; -class IEEmbed :public IDispatch, public IOleClientSite, public IOleInPlaceSite //, public IDocHostUIHandler +class IEEmbed :public IDispatch, public IOleClientSite, public IOleInPlaceSite { -public: +private: HWND parent; HWND hwnd; int m_cRef; @@ -88,7 +88,9 @@ public: CComPtr m_pConnectionPoint; CComPtr pWebBrowser; IEEmbedSink *sink; + WNDPROC mainWndProc, docWndProc, serverWndProc; +public: // IUnknown STDMETHODIMP QueryInterface(REFIID riid, PVOID *ppv); STDMETHODIMP_(ULONG) AddRef(void); @@ -128,6 +130,13 @@ public: IEEmbed(HWND _parent); virtual ~IEEmbed(); + void setMainWndProc(WNDPROC); + WNDPROC getMainWndProc(); + void setDocWndProc(WNDPROC); + WNDPROC getDocWndProc(); + void setServerWndProc(WNDPROC); + WNDPROC getServerWndProc(); + void ResizeBrowser(); void navigate(const wchar_t *); void navigate(char *url); @@ -136,5 +145,6 @@ public: void addCookie(const wchar_t *cookieString); BSTR getCookies(); char* GetHTMLDoc(); + void translateAccelerator(UINT uMsg, WPARAM wParam, LPARAM lParam); }; #endif -- cgit v1.2.3