SmsCenter/EmailThread.h
2025-01-03 16:47:25 +08:00

69 lines
1.6 KiB
C++

#if !defined(AFX_EMAILTHREAD_H__FB38C5E3_C5EC_4D78_A7ED_52D58C39D5C5__INCLUDED_)
#define AFX_EMAILTHREAD_H__FB38C5E3_C5EC_4D78_A7ED_52D58C39D5C5__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// EmailThread.h : header file
//
#include "SendThread.h"
/////////////////////////////////////////////////////////////////////////////
// CCalendalThread thread
#define TH_EMAIL WM_USER + 430 //发送短消息
class CEmailThread : public CWinThread
{
public:
BOOL m_bStart; //现在是否在发送短信中
CAdoConnection m_adoConnection;
CAdoRecordSet m_AdoRS;
CAdoRecordSet m_AdoRS1;
CAdoRecordSet m_AdoRS2;
CSmsCenterDlg * m_pSMSDlg;
DECLARE_DYNCREATE(CEmailThread)
//protected:
public:
CEmailThread(); // protected constructor used by dynamic creation
// Attributes
public:
// Operations
public:
BOOL SetParam(CSmsCenterDlg *pSmsDlg);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CEmailThread)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL
// Implementation
//protected:
public:
virtual ~CEmailThread();
// Generated message map functions
//{{AFX_MSG(CEmailThread)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
afx_msg void On_Email(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_EMAILTHREAD_H__FB38C5E3_C5EC_4D78_A7ED_52D58C39D5C5__INCLUDED_)