Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

Web Win32/WTL Hybrid

, 22 Dec 2005
How to implement a two-way communication path from IExplorer and WTL code
webwin32sample.zip
html
res
toolbar.bmp
WebWin32Sample.exe.manifest
WebWin32Sample.ico
WebWin32SampleDoc.ico
WebWin32EventHandler.rgs
WebWin32HTMLEventHandler.rgs
WebWin32Lib.rgs
WebWin32Sample.rgs
WebWin32Sampleps.def
WebWin32Sampleps.mk
webwin32samplevc6.zip
toolbar.bmp
WebWin32Sample.exe.manifest
WebWin32Sample.ico
WebWin32Sampledoc.ico
WebWin32Sampleps.def
WebWin32Sample.dsp
WebWin32Sample.dsw
WebWin32Sampleps.mk
WebWin32Sample.opt
WebWin32Sample.plg
QQQQ.rgs
WebWin32EventHandler.rgs
WebWin32HTMLEventHandler.rgs
WebWin32Lib.rgs
WebWin32Sample.rgs
WebWin32Sample.idl.seg
WebWin32Sample.tlb
// WebWin32HTMLEventHandler.h : Declaration of the CWebWin32HTMLEventHandler

#pragma once
#include "resource.h"       // main symbols

#include "WebWin32Sample.h"


// CWebWin32HTMLEventHandler

class ATL_NO_VTABLE CWebWin32HTMLEventHandler : 
	public CComObjectRootEx<CComSingleThreadModel>,
	public CComCoClass<CWebWin32HTMLEventHandler, &CLSID_WebWin32HTMLEventHandler>,
	public IDispatchImpl<IWebWin32HTMLEventHandler, &IID_IWebWin32HTMLEventHandler, &LIBID_WebWin32SampleLib, /*wMajor =*/ 1, /*wMinor =*/ 0>
	public CComObject
{
public:
	CWebWin32HTMLEventHandler()
	{
	}

DECLARE_REGISTRY_RESOURCEID(IDR_WEBWIN32HTMLEVENTHANDLER)


BEGIN_COM_MAP(CWebWin32HTMLEventHandler)
	COM_INTERFACE_ENTRY(IWebWin32HTMLEventHandler)
	COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()


	DECLARE_PROTECT_FINAL_CONSTRUCT()

	HRESULT FinalConstruct()
	{
		return S_OK;
	}
	
	void FinalRelease() 
	{
	}

public:

	STDMETHOD(EventHandler)(void);
};

//OBJECT_ENTRY_AUTO(__uuidof(WebWin32HTMLEventHandler), CWebWin32HTMLEventHandler)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Jesus Salas
CEO wave-vs.net
Spain Spain
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141220.1 | Last Updated 22 Dec 2005
Article Copyright 2002 by Jesus Salas
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid