|
// DDAxHostWindow.h: interface for the CDDAxHostWindow class.
//
// Author : David Shepherd
// Copyright (c) 2003, DaeDoe-Software
//
/////////////////////////////////////////////////////////////////////////////
#pragma once
/////////////////////////////////////////////////////////////////////////////
// CDDAxHostWindow
class ATL_NO_VTABLE CDDAxHostWindow : public CAxHostWindow
{
public:
DECLARE_PROTECT_FINAL_CONSTRUCT()
DECLARE_POLY_AGGREGATABLE(CDDAxHostWindow)
DECLARE_GET_CONTROLLING_UNKNOWN()
// todo : remove this once there are additional interfaces
#if 0
BEGIN_COM_MAP(CDDAxHostWindow)
// todo : add additional interfaces here
COM_INTERFACE_ENTRY_CHAIN(CAxHostWindow)
END_COM_MAP()
#endif
BEGIN_MSG_MAP(CDDAxHostWindow)
MESSAGE_HANDLER(WM_PAINT, OnPaint)
MESSAGE_HANDLER(WM_MOUSEACTIVATE, OnMouseActivate)
CHAIN_MSG_MAP(CAxHostWindow)
END_MSG_MAP()
// message handlers
LRESULT OnPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
LRESULT OnMouseActivate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
// CAxHostWindow overrides
HRESULT ActivateAx(IUnknown* pUnkControl, bool bInited, IStream* pStream);
// IAxWinHostWindow overrides
STDMETHOD(AttachControl)(IUnknown* pUnkControl, HWND hWnd);
// IAxWinHostWindowLic overrides
STDMETHOD(CreateControlLicEx)(LPCOLESTR lpszTricsData, HWND hWnd, IStream* pStream, IUnknown** ppUnk, REFIID iidAdvise, IUnknown* punkSink, BSTR bstrLic);
};
|
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.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.