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

65 lines
1.6 KiB
C++

#if !defined(AFX_CalendarThread_H__B34E5D07_B65A_416C_8A17_E0F802C319E4__INCLUDED_)
#define AFX_CalendarThread_H__B34E5D07_B65A_416C_8A17_E0F802C319E4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// CalendarThread.h : header file
//
#include "SendThread.h"
/////////////////////////////////////////////////////////////////////////////
// CCalendarThread thread
#define TH_CALENDAR WM_USER + 420 //发送短消息
class CCalendarThread : public CWinThread
{
public:
BOOL m_bStart; //现在是否在发送短信中
CAdoConnection m_adoConnection;
CAdoRecordSet m_AdoRS;
CAdoRecordSet m_AdoRS1;
CSmsCenterDlg * m_pSMSDlg;
DECLARE_DYNCREATE(CCalendarThread)
protected:
CCalendarThread(); // protected constructor used by dynamic creation
// Attributes
public:
// Operations
public:
BOOL SetParam(CSmsCenterDlg *pSmsDlg);
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CCalendarThread)
public:
virtual BOOL InitInstance();
virtual int ExitInstance();
//}}AFX_VIRTUAL
// Implementation
protected:
virtual ~CCalendarThread();
// Generated message map functions
//{{AFX_MSG(CCalendarThread)
// NOTE - the ClassWizard will add and remove member functions here.
//}}AFX_MSG
afx_msg LRESULT On_Calendar(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_CalendarThread_H__B34E5D07_B65A_416C_8A17_E0F802C319E4__INCLUDED_)