Click here to Skip to main content
15,897,371 members
Articles / Desktop Programming / WTL

Form Designer

26 Jul 2021CPOL24 min read 352.2K   82.5K   230  
Component for adding scriptable forms capabilities to an application.
#if !defined(AFX_SIMPLESCRIPTEDITOR_H__FCF3C19C_960A_423E_9F53_ED866B9B7FFD__INCLUDED_)
#define AFX_SIMPLESCRIPTEDITOR_H__FCF3C19C_960A_423E_9F53_ED866B9B7FFD__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++

// NOTE: Do not modify the contents of this file.  If this class is regenerated by
//  Microsoft Visual C++, your modifications will be overwritten.


// Dispatch interfaces referenced by this interface
class COleFont;

/////////////////////////////////////////////////////////////////////////////
// CSimpleScriptEditor wrapper class

class CSimpleScriptEditor : public CWnd
{
protected:
	DECLARE_DYNCREATE(CSimpleScriptEditor)
public:
	CLSID const& GetClsid()
	{
		static CLSID const clsid
			= { 0x3dcfde22, 0x143a, 0x11d6, { 0xb6, 0xa6, 0xac, 0x96, 0xf, 0xfc, 0x53, 0x45 } };
		return clsid;
	}
	virtual BOOL Create(LPCTSTR lpszClassName,
		LPCTSTR lpszWindowName, DWORD dwStyle,
		const RECT& rect,
		CWnd* pParentWnd, UINT nID,
		CCreateContext* pContext = NULL)
	{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID); }

    BOOL Create(LPCTSTR lpszWindowName, DWORD dwStyle,
		const RECT& rect, CWnd* pParentWnd, UINT nID,
		CFile* pPersist = NULL, BOOL bStorage = FALSE,
		BSTR bstrLicKey = NULL)
	{ return CreateControl(GetClsid(), lpszWindowName, dwStyle, rect, pParentWnd, nID,
		pPersist, bStorage, bstrLicKey); }

// Attributes
public:

// Operations
public:
	void About();
	void Cut();
	void Copy();
	void Paste();
	void Undo();
	void RefreshModifiedState();
	BOOL GetModified();
	void SetModified(BOOL bNewValue);
	void SetBorderVisible(BOOL bNewValue);
	BOOL GetBorderVisible();
	void SetBackColor(unsigned long newValue);
	unsigned long GetBackColor();
	void SetForeColor(unsigned long newValue);
	unsigned long GetForeColor();
	void SetRefFont(LPDISPATCH newValue);
	void SetFont(LPDISPATCH newValue);
	COleFont GetFont();
};

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

#endif // !defined(AFX_SIMPLESCRIPTEDITOR_H__FCF3C19C_960A_423E_9F53_ED866B9B7FFD__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