// ClikPnt.h : header file
//
// This is a part of the Microsoft Foundation Classes C++ library.
// Copyright (C) 1992-1997 Microsoft Corporation
// All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Foundation Classes Reference and related
// electronic documentation provided with the library.
// See these sources for detailed information regarding the
// Microsoft Foundation Classes product.



/////////////////////////////////////////////////////////////////////////////
// CAutoClickPoint command target

class CAutoClickPoint : public CCmdTarget
{
	DECLARE_DYNCREATE(CAutoClickPoint)

	CAutoClickPoint();           // protected constructor used by dynamic creation

// Attributes
public:

// Operations
public:
	CPoint GetClickPoint() { return CPoint(m_x, m_y); }
	void SetClickPoint(CPoint point) { m_x = (short)point.x; m_y = (short)point.y; }

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CAutoClickPoint)
	public:
	virtual void OnFinalRelease();
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CAutoClickPoint();

	// Generated message map functions
	//{{AFX_MSG(CAutoClickPoint)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG

public:
	DECLARE_MESSAGE_MAP()
	// Generated OLE dispatch map functions
	//{{AFX_DISPATCH(CAutoClickPoint)
	short m_x;
	short m_y;
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()
	DECLARE_INTERFACE_MAP()

	// DUAL_SUPPORT_START
	//    add declaration of IDualAutoClickPoint implementation
	//	  You need one entry here for each entry in the
	//	  interface statement of the ODL, plus the entries for a
	//	  dispatch interface. The BEGIN_DUAL_INTERFACE_PART
	//	  macro in mfcdual.h automatically generates the IDispatch
	//	  entries for you. 
	//	  Each entry with the "propput" attribute needs a function
	//    named "put_<property name>". Each entry with the "propget" 
	//	  attribute needs a function named "get_<property name>". 
	//	  You can pull these function prototypes from the header file 
	//	  generated by MKTYPLIB.
	BEGIN_DUAL_INTERFACE_PART(DualAutoClickPoint, IDualAutoClickPoint)
	    STDMETHOD(put_x)(THIS_ short newX);
		STDMETHOD(get_x)(THIS_ short FAR* retval);
		STDMETHOD(put_y)(THIS_ short newY);
		STDMETHOD(get_y)(THIS_ short FAR* retval);
	END_DUAL_INTERFACE_PART(DualAutoClickPoint)

    //     add declaration of ISupportErrorInfo implementation
    //     to indicate we support the OLE Automation error object
    DECLARE_DUAL_ERRORINFO()
	// DUAL_SUPPORT_END
};

/////////////////////////////////////////////////////////////////////////////
