📄 mysliderctrl.h
字号:
#if !defined(AFX_MYSLIDERCTRL_H__776FB70E_27F7_4F82_8429_30D188BA613E__INCLUDED_)
#define AFX_MYSLIDERCTRL_H__776FB70E_27F7_4F82_8429_30D188BA613E__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// MySliderCtrl.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// CMySliderCtrl window
class AFX_EXT_CLASS CMySliderCtrl : public CSliderCtrl
{
// Construction
public:
CMySliderCtrl();
bool m_bRedraw;
// Attributes
public:
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMySliderCtrl)
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CMySliderCtrl();
// Generated message map functions
protected:
//{{AFX_MSG(CMySliderCtrl)
afx_msg void OnCustomdraw(NMHDR* pNMHDR, LRESULT* pResult);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
//UINT Slider;
//CBrush brush;
HDC m_dcBk;
HBITMAP m_bmpBk;
HBITMAP m_bmpBkOld;
COLORREF m_crThumbColor;
COLORREF m_crThumbColorSelected;
public:
void SetThumbColors(COLORREF face, COLORREF highlight);
// void SetllPos(LONGLONG nPos);
void DrawTransparent(BOOL bRepaint);
//void SetRange(int nMin,int nMax,bool bRedrGETaw = false);
/*void GetRange(int &nMin,int &nMax) const;
int GetPos() const;
int SetPos(int nPos);*/
int GetPageSize() const;
int SetPageSize(int nSize);
void SetTicFreq(int nFreq);
bool SetTic(int nTic);
void ClearTics(bool bRedraw = false);
public:
void DrawChannel(CDC *pDC, LPNMCUSTOMDRAW lpcd);
void DrawThumb(CDC *pDC, LPNMCUSTOMDRAW lpcd);
void DrawPlan(CDC *pDC, LPNMCUSTOMDRAW lpcd);
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_MYSLIDERCTRL_H__776FB70E_27F7_4F82_8429_30D188BA613E__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -