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