|
///////////////////////////////////////////////////////////////
//
// MouseGesturesCfg.h
//
// Created: 11/07/2003
// Copyright (c) 2003 Ralph Hare (ralph.hare@ysgyfarnog.co.uk)
// All rights reserved.
//
// The code and information is provided "as-is" without
// warranty of any kind, either expressed or implied.
//
///////////////////////////////////////////////////////////////
#ifndef __MOUSEGESTURESCFG_H_0D43CD91_D304_45F7_9E6C_61C6AD2603FA_
#define __MOUSEGESTURESCFG_H_0D43CD91_D304_45F7_9E6C_61C6AD2603FA_
#include "resource.h" // main symbols
#include "MouseGesturesCfgDlg.h"
/**
* Respond to the entry added to the IE Tools menu
* @see IOleCommandTarget
**/
class ATL_NO_VTABLE MouseGesturesCfg :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<MouseGesturesCfg, &CLSID_MouseGesturesCfg>,
public IDispatchImpl<IMouseGesturesCfg, &IID_IMouseGesturesCfg, &LIBID_MOUSEGESTURESLib>,
public IObjectWithSiteImpl< MouseGesturesCfg >,
public IOleCommandTarget
{
public:
MouseGesturesCfg()
{
}
DECLARE_REGISTRY_RESOURCEID(IDR_MOUSEGESTURESCFG)
DECLARE_PROTECT_FINAL_CONSTRUCT()
BEGIN_COM_MAP(MouseGesturesCfg)
COM_INTERFACE_ENTRY(IMouseGesturesCfg)
COM_INTERFACE_ENTRY(IDispatch)
COM_INTERFACE_ENTRY(IObjectWithSite)
COM_INTERFACE_ENTRY(IOleCommandTarget)
END_COM_MAP()
// IMouseGesturesCfg
public:
// IOleObjectWithSite Methods
private:
STDMETHOD( SetSite )( IUnknown * )
{
return S_OK;
}
// IOleCommandTarget
private:
STDMETHOD( QueryStatus )(
const GUID *,
ULONG,
OLECMD prgCmds[],
OLECMDTEXT *pCmdText
)
{
return S_OK;
}
STDMETHOD( Exec )( const GUID *, DWORD, DWORD, VARIANTARG *, VARIANTARG * )
{
MouseGesturesCfgDlg().DoModal();
return S_OK;
}
};
#endif // __MOUSEGESTURESCFG_H_0D43CD91_D304_45F7_9E6C_61C6AD2603FA_
|
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 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
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.