📄 progress.h
字号:
// progress.h : header file
//
/////////////////////////////////////////////////////////////////////////////
// DProgress dialog
class DProgress : public CDialog
{
// Construction
public:
DProgress(CWnd* pParent = NULL); // standard constructor
// Attributes
int d_nPercent; // Percent complete (0 to 100).
LOGFONT d_lf; // Windows API LOGFONT font descriptor.
CFont * d_pfont; // MFC font object.
LPTSTR pstrBar; // Holds characters for percent complete bar.
void SetPercent (int n);
int GetPercent ();
void ResizeStatic(CStatic * pst);
void CenterChildWindow(CWnd * pwndChild);
// Dialog Data
//{{AFX_DATA(DProgress)
enum { IDD = IDD_PROGRESS };
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(DProgress)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(DProgress)
virtual BOOL OnInitDialog();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
//}}AFX_MSG
void OnCancel();
DECLARE_MESSAGE_MAP()
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -