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

📄 tmautodialdlg.h

📁 单路开发文档和源代码例子12-13 VC源码 自动拨号
💻 H
字号:
// TmAutoDialDlg.h : header file
//

#if !defined(AFX_TMAUTODIALDLG_H__561A682C_9B89_479C_A9D6_7B051BEFAA6B__INCLUDED_)
#define AFX_TMAUTODIALDLG_H__561A682C_9B89_479C_A9D6_7B051BEFAA6B__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CTmAutoDialDlg dialog
#include "TmDialProc.h"
#include "Inifile.h"

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

// Dialog Data
	//{{AFX_DATA(CTmAutoDialDlg)
	enum { IDD = IDD_TMAUTODIAL_DIALOG };
	CButton	m_Stop;
	CButton	m_Start;
	CStatic	m_StStatus;
	CEdit	m_cCodePath;
	CListBox	m_CodeList;
	CString	m_strExterDial;
	CString	m_strCodePath;
	CTime	m_DateTimeBegin;
	CTime	m_DateTimeEnd;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTmAutoDialDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	virtual LRESULT WindowProc(UINT message, WPARAM wParam, LPARAM lParam);
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CTmAutoDialDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnStartdial();
	afx_msg void OnSelectpath();
	afx_msg void OnDestroy();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnStop();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
private:
	CString GetModulePath();
	void	GetCodeListFromText(const CString &strPath);
	void	InitIni();
	void	SaveIni();

	BOOL StartDial();

	UINT  m_iCurrentDialID;

	CTmDialProc	m_TmDialProc;

	UINT		m_nDialEndWait;//拨号结束后等待一定时间后挂断。
	UINT		m_nStartDialWait;//挂断后等待一定时间后继续下一个

	void		StopDialEndWaitTimer();
	void		StopStartDialWait();

	BOOL		StartDialTimer(UINT nTime=5000);//等待一定时间后开始拨号
	BOOL		StartDialEndWaitTimer();//拨号结束后等待一定时间就挂段


	UINT		m_nCheckValidateTimer;//检测拨号时间是否合法了,合法就可以呼叫
	void		StopCheckValidate();

	BOOL		IsValidateTime();

};

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

#endif // !defined(AFX_TMAUTODIALDLG_H__561A682C_9B89_479C_A9D6_7B051BEFAA6B__INCLUDED_)

⌨️ 快捷键说明

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