Click here to Skip to main content
15,891,951 members
Articles / Desktop Programming / WTL

Form Designer

26 Jul 2021CPOL24 min read 351.9K   82.5K   230  
Component for adding scriptable forms capabilities to an application.
// Class2.h : header file
//
// Author : David Shepherd
//			Copyright (c) 2002, DaeDoe-Software
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CLASS2_H__C14B9DF5_FB98_458A_B597_9320A514D0D8__INCLUDED_)
#define AFX_CLASS2_H__C14B9DF5_FB98_458A_B597_9320A514D0D8__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "Interfaces.h"

/////////////////////////////////////////////////////////////////////////////
// CClass2 command target

class CClass2 : public CCmdTarget
{
	DECLARE_DYNCREATE(CClass2)

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

// Attributes
public:

// Operations
public:

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

// Implementation
protected:
	virtual ~CClass2();

	BOOL GetDispatchIID(IID* pIID)
	{
		*pIID = DIID_IClass2;
		return TRUE;
	}

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

	DECLARE_MESSAGE_MAP()
	DECLARE_OLECREATE(CClass2)

	// Generated OLE dispatch map functions
	//{{AFX_DISPATCH(CClass2)
	//}}AFX_DISPATCH
	DECLARE_DISPATCH_MAP()
	DECLARE_INTERFACE_MAP()

	DECLARE_CONNECTION_MAP()

	BEGIN_CONNECTION_PART(CClass2,Class2CP)
		CONNECTION_IID(DIID_IClass2Events)
	END_CONNECTION_PART(Class2CP)

	DECLARE_OLETYPELIB(CClass2)
};

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

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CLASS2_H__C14B9DF5_FB98_458A_B597_9320A514D0D8__INCLUDED_)

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions