www.pudn.com > IEC104MasterSlave.rar > IEC104NASlaveDlg.h, change:2013-04-18,size:2333b


// IEC104NASlaveDlg.h : header file 
// 
 
#if !defined(AFX_IEC104NASLAVEDLG_H__76F8CBDC_BEBC_42FD_920C_759778DCC183__INCLUDED_) 
#define AFX_IEC104NASLAVEDLG_H__76F8CBDC_BEBC_42FD_920C_759778DCC183__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
 
 
// #include "Slave104.h" 
#include <winsock2.h> 
#define WM_MYMESSAGE WM_USER+100 
 
///////////////////////////////////////////////////////////////////////////// 
// CIEC104NASlaveDlg dialog 
class Slave104; 
class CIEC104NASlaveDlg : public CDialog 
{ 
// Construction 
public: 
	CIEC104NASlaveDlg(CWnd* pParent = NULL);	// standard constructor 
	virtual ~CIEC104NASlaveDlg(); 
 
// Dialog Data 
	//{{AFX_DATA(CIEC104NASlaveDlg) 
	enum { IDD = IDD_IEC104NASLAVE_DIALOG }; 
	CButton	m_startListen; 
	CButton	m_stopListen; 
	CListBox	m_revList; 
	CListBox	m_sendList; 
	//}}AFX_DATA 
 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CIEC104NASlaveDlg) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	HICON m_hIcon; 
	 
public: 
	void SetButtonState(BOOL state); 
	void SetRemainTimeCtrl(int nType,  int nRemainSecond, BOOL isInvalid); 
	void SetTimeCtrl(int nType, BOOL isInvalid); 
	void MyMemcpy(void *, void *, int len); 
	BOOL StartListen(); 
	Slave104 *slave; 
//	static DWORD WINAPI ClientThread(LPVOID lpParam); 
//	int GetIp(); 
//	SOCKET client; 
//	sockaddr_in from; 
	BYTE YXData[288]; 
//	BYTE YCData[6000]; 
	DWORD YMData[20]; 
	WORD YCData[2951]; 
 
	// Generated message map functions 
	//{{AFX_MSG(CIEC104NASlaveDlg) 
	virtual BOOL OnInitDialog(); 
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam); 
	afx_msg void OnPaint(); 
	afx_msg HCURSOR OnQueryDragIcon(); 
	afx_msg void OnButtonStart(); 
	afx_msg LRESULT OnRevMsg(WPARAM wParam,LPARAM lParam); 
	afx_msg void OnButtonDeflectionyx(); 
	afx_msg void OnButtonSoe(); 
	afx_msg void OnButton1(); 
	afx_msg void OnButtonStoplisten(); 
	afx_msg void OnButtonClearlist(); 
	afx_msg void OnButtonSavemsg(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_IEC104NASLAVEDLG_H__76F8CBDC_BEBC_42FD_920C_759778DCC183__INCLUDED_)