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

📄 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.

/////////////////////////////////////////////////////////////////////////////
// CRuler wrapper class

class CRuler : public CWnd
{
protected:
	DECLARE_DYNCREATE(CRuler)
public:
	CLSID const& GetClsid()
	{
		static CLSID const clsid
			= { 0xd9553ac3, 0xa8aa, 0x4655, { 0x9a, 0xfa, 0x96, 0xc5, 0x91, 0x6f, 0x6a, 0x43 } };
		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 GetHorz();
	void SetHorz(BOOL);
	BOOL GetAutoIncreDecre();
	void SetAutoIncreDecre(BOOL);

// Operations
public:
	void SetRulerInfo(short nLowerLimit, short nUpperLimit, short nScalingFactor, BOOL bHorz, BOOL b3DLook);
	void SetStyle(BOOL b3D);
	void SetAlignment(BOOL bHorz);
	void StartTracking(long* lpPoint);
	void StopTracking(long* lpPoint);
	void Track(long* lpPoint);
	BOOL AutoIncreDecreSet();
	void SetAutoOffset(BOOL bAutoOffset);
	void AboutBox();
};

⌨️ 快捷键说明

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