📄 ~transslider.~h
字号:
#if !defined(AFX_MYSLIDERCONTROL_H__C76FA857_51CC_4EB6_A8E2_8323BBEF10BD__INCLUDED_)
#define AFX_MYSLIDERCONTROL_H__C76FA857_51CC_4EB6_A8E2_8323BBEF10BD__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// CTransSlider window
class CTransSlider : public CWnd
{
int from; // range min
int to; // range max
int p; // position
int t; // tic
int tf; // tic frequency
void paintbk();
// Construction
public:
CTransSlider();
// Attributes
public:
// Operations
public:
void SetPos(int pos);
int GetPos() const;
void SetRange(int mn, int mx);
void GetRange(int& mn, int& mx);
BOOL SetTic(int tic);
void SetTicFreq(int freq);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTransSlider)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CTransSlider();
// Generated message map functions
protected:
//{{AFX_MSG(CTransSlider)
afx_msg void OnPaint();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYSLIDERCONTROL_H__C76FA857_51CC_4EB6_A8E2_8323BBEF10BD__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -