page4.h

来自「用MODEM拨号程序」· C头文件 代码 · 共 90 行

H
90
字号
///////////////////////////////////////////////////////////////////////
// If this program works, it was written by Alexander Fedorov.
// If not, I don't know who wrote it.
// mailto:lamer2000@hotmail.com
// Home Page: http://members.xoom.com/lamer2000/
// This file is part of Alexf Dialer.
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
///////////////////////////////////////////////////////////////////////

#if !defined(AFX_PAGE4_H__298DD352_F00C_11D2_9864_D86B908C7AFE__INCLUDED_)
#define AFX_PAGE4_H__298DD352_F00C_11D2_9864_D86B908C7AFE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// Page4.h : header file
//

#include "AFDialPanel.h"

/////////////////////////////////////////////////////////////////////////////
// CPage4 dialog

class CPage4 : public CPropertyPage
{
	DECLARE_DYNCREATE(CPage4)

// Construction
public:
	UINT uTimer;
	DWORD dwInitBytesSent;
	DWORD dwInitBytesRecv;
	CTime TimeBeginSession;
	CString sTimeTotalLast;
	BOOL bWindowActivated;

	BOOL InitPropertyPage();
	BOOL StartSession();
	BOOL FinishSession();
	BOOL SetStatisticData();
	CString ConvercTStoS(CTimeSpan ts);
	BOOL LoadTimeINI();
	BOOL SaveTimeINI();
	CTimeSpan ParseSavedTime(CString sss);
	CPage4();
	~CPage4();

// Dialog Data
	//{{AFX_DATA(CPage4)
	enum { IDD = IDD_DIALOG4 };
	CAFDialPanel m_PaneModem;
	CString	m_sRecv;
	CString	m_sSent;
	CString	m_sSpeed;
	CString	m_sTimeCur;
	CString	m_sTimeTot;
	CString	m_sConnectionName;
	//}}AFX_DATA


// Overrides
	// ClassWizard generate virtual function overrides
	//{{AFX_VIRTUAL(CPage4)
	public:
	virtual BOOL OnSetActive();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	// Generated message map functions
	//{{AFX_MSG(CPage4)
	virtual BOOL OnInitDialog();
	afx_msg void OnDestroy();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnClean();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PAGE4_H__298DD352_F00C_11D2_9864_D86B908C7AFE__INCLUDED_)

⌨️ 快捷键说明

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