summaryrefslogtreecommitdiff
path: root/plugins/IEView/src/IEView.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-04-19 21:12:24 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-04-19 21:12:24 +0000
commit23da585729242bc135e7a6da0dc5bf699e6c9b54 (patch)
treed9588a9288ed88c36979d4d92538f3641796e2af /plugins/IEView/src/IEView.h
parent26ec77c0e1b49ac1dc002acc4da767d9de8e9703 (diff)
- all strings operations were rewritten using CMString instead of ugly self-made buffers;
- CComPtr<> introduced to simplify COM calls processing; - version bump. git-svn-id: http://svn.miranda-ng.org/main/trunk@12946 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/IEView.h')
-rw-r--r--plugins/IEView/src/IEView.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/plugins/IEView/src/IEView.h b/plugins/IEView/src/IEView.h
index 6621500830..e2e1cec47d 100644
--- a/plugins/IEView/src/IEView.h
+++ b/plugins/IEView/src/IEView.h
@@ -420,7 +420,8 @@ public:
STDMETHODIMP_(void)FileDownload(VARIANT_BOOL*);
};
-class IEView :public IDispatch, public IOleClientSite, public IOleInPlaceSite, public IDocHostUIHandler, public IInternetSecurityManager, public IServiceProvider {
+class IEView :public IDispatch, public IOleClientSite, public IOleInPlaceSite, public IDocHostUIHandler, public IInternetSecurityManager, public IServiceProvider, public MZeroedObject
+{
private:
static IEView *list;
static mir_cs mutex;
@@ -431,9 +432,9 @@ private:
RECT rcClient;
BOOL m_bInPlaceActive;
DWORD m_dwCookie;
- IConnectionPoint *m_pConnectionPoint;
+ CComPtr<IConnectionPoint> m_pConnectionPoint;
+ CComPtr<IWebBrowser2> pWebBrowser;
IEViewSink *sink;
- IWebBrowser2 *pWebBrowser;
HTMLBuilder *builder;
WNDPROC mainWndProc, docWndProc, serverWndProc;
@@ -508,7 +509,7 @@ private:
STDMETHOD(GetZoneMappings)(DWORD dwZone, IEnumString **ppenumString, DWORD dwFlags);
IHTMLDocument2 *getDocument();
- WCHAR* getHrefFromAnchor(IHTMLElement *element);
+ WCHAR* getHrefFromAnchor(CComPtr<IHTMLElement> element);
WCHAR* getSelection();
void setBorder();
protected: