⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 progress.h

📁 《Visual C++ Bible》或者说是《Visual C++ 宝典》的对应的源码文件
💻 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 + -