📄 progressex.h
字号:
#pragma once
// CProgressEx
class CProgressEx : public CProgressCtrl
{
DECLARE_DYNAMIC(CProgressEx)
public:
CProgressEx();
virtual ~CProgressEx();
int SetPos(int nPos);
int StepIt();
void SetRange(int nLower, int nUpper);
int OffsetPos(int nPos);
int SetStep(int nStep);
void SetForeColour(COLORREF col);
void SetBkColour(COLORREF col);
void SetTextForeColour(COLORREF col);
void SetTextBkColour(COLORREF col);
COLORREF GetForeColour();
COLORREF GetBkColour();
COLORREF GetTextForeColour();
COLORREF GetTextBkColour();
void SetShowText(BOOL bShow);
protected:
int m_nPos, m_nStepSize, m_nMax, m_nMin;
CString m_strText;
BOOL m_bShowText;
int m_nBarWidth;
COLORREF m_colFore,m_colBk,m_colTextFore,m_colTextBk;
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnPaint();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg LRESULT OnSetText(UINT, LPCTSTR szText);
afx_msg LRESULT OnGetText(UINT cchTextMax, LPTSTR szText);
DECLARE_MESSAGE_MAP()
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -