?? 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
//##ModelId=3F90BAA70223
class CTransSlider : public CWnd
{
//##ModelId=3F90BAA7022E
int from; // range min
//##ModelId=3F90BAA70237
int to; // range max
//##ModelId=3F90BAA7024B
int p; // position
//##ModelId=3F90BAA70255
int t; // tic
//##ModelId=3F90BAA7025F
int tf; // tic frequency
//##ModelId=3F90BAA70269
void paintbk();
// Construction
public:
//##ModelId=3F90BAA70273
CTransSlider();
// Attributes
public:
// Operations
public:
//##ModelId=3F90BAA70274
void SetPos(int pos);
//##ModelId=3F90BAA7027E
int GetPos() const;
//##ModelId=3F90BAA70287
void SetRange(int mn, int mx);
//##ModelId=3F90BAA70291
void GetRange(int& mn, int& mx);
//##ModelId=3F90BAA7029B
BOOL SetTic(int tic);
//##ModelId=3F90BAA702A5
void SetTicFreq(int freq);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTransSlider)
//}}AFX_VIRTUAL
// Implementation
public:
//##ModelId=3F90BAA702B0
virtual ~CTransSlider();
// Generated message map functions
protected:
//{{AFX_MSG(CTransSlider)
//##ModelId=3F90BAA702B2
afx_msg void OnPaint();
//##ModelId=3F90BAA702BA
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//##ModelId=3F90BAA702C5
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
//##ModelId=3F90BAA702D8
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
//##ModelId=3F90BAA702E3
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 + -