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

📄 sendthread.h

📁 C++语言开发的受机短信相关的源程序
💻 H
字号:
#if !defined(AFX_SENDTHREAD_H__3B503907_8830_4F9A_8393_5D60670E1BED__INCLUDED_)
#define AFX_SENDTHREAD_H__3B503907_8830_4F9A_8393_5D60670E1BED__INCLUDED_

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

#include "queue.h"
#include "lable.h"
#include "Export.h"
#include "VariantBufConvert.h"
#include "afxmt.h"

/////////////////////////////////////////////////////////////////////////////
// CSendThread thread
class CHWCmppAPIDlg;

class CSendThread : public CWinThread
{
	BOOL	m_bIsShowMsg;
	CCriticalSection m_criticalIsShowMsg;
//	HANDLE	m_hmtxIsShowMsg;// 窗口显示消息的互斥体,保护 m_bIsShowMsg
	DECLARE_DYNCREATE(CSendThread)
protected:
	CSendThread();           // protected constructor used by dynamic creation

// Attributes
public:

	BOOL	m_bIfRun;
	CQueue	m_queueRW;
	char	m_chIcpId[10];
	CHWCmppAPIDlg*	m_pParent;
// Operations
public:
	CString m_strMsg;
	BOOL GetIfShowMsg();
	void QuitThread();
	void ShowMsg(const CString &strMsg);
	void SetIfShowMsg(BOOL bIsSHow);
	void Stop();
	void Start();
	BOOL Init(int nID, CString strQueueUp, CString strQueueDown, char * chIcpId,CHWCmppAPIDlg* pParent);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSendThread)
	public:
	virtual BOOL InitInstance();
	virtual int ExitInstance();
	//}}AFX_VIRTUAL

// Implementation
protected:
	virtual ~CSendThread();
	int SendSM(BYTE byPKTotal, BYTE byPKNum, CString strSrc, CString strDest, CString strFeePhone, char *chMsg, int nMsgLen,BYTE byType, int nFormat,  int nFeeType, int nFeeCode, CString strSevID, __int32 nMsgID, long nPriority, CString &strGateID);
	void BinPro(int nFormat, BYTE &byPID, BYTE &byUDHI, BYTE &byDCS );

	// Generated message map functions
	//{{AFX_MSG(CSendThread)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	afx_msg LRESULT OnSendLoop(WPARAM w,LPARAM l);
	DECLARE_MESSAGE_MAP()
private:
	BOOL m_bInit;
	int m_nID;
//	int m_nThrdID;
};
#include "HWCmppAPIDlg.h"

/////////////////////////////////////////////////////////////////////////////

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

#endif // !defined(AFX_SENDTHREAD_H__3B503907_8830_4F9A_8393_5D60670E1BED__INCLUDED_)

⌨️ 快捷键说明

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