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

📄 progressdlg.h

📁 vc++网络程序设计实例详解 人民邮电出版社1-2章源码
💻 H
字号:
#ifndef PROGRESSDLG_H
#define PROGRESSDLG_H

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

const UINT TIMER_STEP = 1;

class CRemoteAdminDoc;
class CProgressWndThread;

class CProgressDlg : public CDialog
{
    DECLARE_DYNCREATE(CProgressDlg)
public:
	CProgressDlg(CWnd* pParent = NULL);   // standard constructor

    void SetProgressText(CString strDlgProgressTxt);
	void SetDlgTitle(CString strDlgTitle);
    void IncrementProgressBar();
	void DestroyProgressBarAndExitThread();
    BOOL Create();
	void SetDocument(CRemoteAdminDoc* pRemoteAdminDoc);
	
// Dialog Data
	//{{AFX_DATA(CProgressDlg)
	enum { IDD = IDD_PROGRESS };
    
	// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CProgressDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CProgressDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnTimer(UINT nIDEvent);
	//}}AFX_MSG

	CRemoteAdminDoc* m_pRemoteAdminDoc;

	DECLARE_MESSAGE_MAP()
};

inline void CProgressDlg::SetDocument(CRemoteAdminDoc* pRemoteAdminDoc)
{
	ASSERT(pRemoteAdminDoc != NULL);

	m_pRemoteAdminDoc = pRemoteAdminDoc;
}

#endif // PROGRESSDLG_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -