bugfree_ruler.h
来自「实现标尺控件, 类似WORD和VISIO中的标尺, 可用于SDI或MDI程序」· C头文件 代码 · 共 60 行
H
60 行
// 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 + =
减小字号Ctrl + -
显示快捷键?