⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bugfree_ruler.h

📁 实现标尺控件, 类似WORD和VISIO中的标尺, 可用于SDI或MDI程序
💻 H
字号:
// 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.

/////////////////////////////////////////////////////////////////////////////
// CBugfree_Ruler wrapper class

class CBugfree_Ruler : public CWnd
{
protected:
	DECLARE_DYNCREATE(CBugfree_Ruler)
public:
	CLSID const& GetClsid()
	{
		static CLSID const clsid
			= { 0x2b00d4f7, 0x1e0d, 0x432e, { 0xb0, 0x65, 0x5b, 0x85, 0xf2, 0x1, 0x2e, 0x5e } };
		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:
	short GetLowerLimit();
	void SetLowerLimit(short);
	short GetUpperLimit();
	void SetUpperLimit(short);
	short GetScalingFactor();
	void SetScalingFactor(short);
	BOOL GetLook3D();
	void SetLook3D(BOOL);
	BOOL GetAutoResize();
	void SetAutoResize(BOOL);
	BOOL GetHorzAligned();
	void SetHorzAligned(BOOL);

// Operations
public:
	void SetRulerInfo(short nLowerLimit, short nUpperLimit, short nScalingFactor, BOOL bHorz, BOOL b3DLook, BOOL bAutoResize);
	void SetAlignment(BOOL bHorz);
	BOOL IsHorzAligned();
	BOOL Has3DBorders();
	void StartTracking(short nFlag, long nX, long nY);
	void StopTracking(short nFlags, long nX, long nY);
	void Track(short nFlags, long nX, long nY);
	void AboutBox();
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -