Click here to Skip to main content
15,886,199 members
Articles / Desktop Programming / MFC

Embeddable script editor for MFC applications

Rate me:
Please Sign up or sign in to vote.
4.90/5 (60 votes)
15 Jul 20032 min read 335.5K   6.4K   130  
A library that allows you to embed scripting functionality to your C++ MFC application.
#if !defined(AFX_TABSTRIP_H__44781A93_E8C6_4B08_8A5E_38B695E6D494__INCLUDED_)
#define AFX_TABSTRIP_H__44781A93_E8C6_4B08_8A5E_38B695E6D494__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;
class CPicture;
class CTabs;
class CTab;

/////////////////////////////////////////////////////////////////////////////
// CTabStrip wrapper class

class CTabStrip : public CWnd
{
protected:
	DECLARE_DYNCREATE(CTabStrip)
public:
	CLSID const& GetClsid()
	{
		static CLSID const clsid
			= { 0xeae50eb0, 0x4a62, 0x11ce, { 0xbe, 0xd6, 0x0, 0xaa, 0x0, 0x61, 0x10, 0x80 } };
		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 SetBackColor(long nNewValue);
	long GetBackColor();
	void SetForeColor(long nNewValue);
	long GetForeColor();
	void SetRefFont(LPDISPATCH newValue);
	COleFont GetFont();
	void SetEnabled(BOOL bNewValue);
	BOOL GetEnabled();
	void SetMouseIcon(LPDISPATCH newValue);
	void SetRefMouseIcon(LPDISPATCH newValue);
	CPicture GetMouseIcon();
	void SetMousePointer(long nNewValue);
	long GetMousePointer();
	void SetMultiRow(BOOL bNewValue);
	BOOL GetMultiRow();
	void SetStyle(long nNewValue);
	long GetStyle();
	void SetTabOrientation(long nNewValue);
	long GetTabOrientation();
	void _SetTabFixedWidth(long TabFixedWidth);
	void _GetTabFixedWidth(long* TabFixedWidth);
	void _SetTabFixedHeight(long TabFixedHeight);
	void _GetTabFixedHeight(long* TabFixedHeight);
	void _GetClientTop(long* ClientTop);
	float GetClientTop();
	void _GetClientLeft(long* ClientLeft);
	float GetClientLeft();
	void _GetClientWidth(long* ClientWidth);
	float GetClientWidth();
	void _GetClientHeight(long* ClientHeight);
	float GetClientHeight();
	CTabs GetTabs();
	CTab GetSelectedItem();
	void SetValue(long nNewValue);
	long GetValue();
	void SetTabFixedWidth(float newValue);
	float GetTabFixedWidth();
	void SetTabFixedHeight(float newValue);
	float GetTabFixedHeight();
};

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

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


Written By
Software Developer (Senior) RDV Systems
Israel Israel
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions