Files
coco df489d5640 a
2026-07-03 16:05:30 +08:00

83 lines
2.4 KiB
C++

#include "afxwin.h"
#if !defined(AFX_DIALROLLCALLCABLE_H__F20B0D29_493E_49FF_843E_3E79883A838C__INCLUDED_)
#define AFX_DIALROLLCALLCABLE_H__F20B0D29_493E_49FF_843E_3E79883A838C__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DialRollCallCable.h : header file
//
#include "cpp/socket/NetRequestDialog.h"
/////////////////////////////////////////////////////////////////////////////
// CDialRollCallCable dialog
#define MAX_ROLLCALL_LEN 4096
class CDialRollCallCable : public CNetRequestDialog
{
// Construction
public:
//CDialRollCallCable(CWnd* pParent = NULL)
CDialRollCallCable(CWnd* pParent = NULL) :CNetRequestDialog(CDialRollCallCable::IDD, pParent)
{
//{{AFX_DATA_INIT(CDialRollCallCable)
// NOTE: the ClassWizard will add member initialization here
//}}AFX_DATA_INIT
memset(m_chData, 0, sizeof(m_chData));
m_iRecvLen = 0;
m_uiDevID = 0;
m_bRollCallFin = false;
m_bSearchFlg = false;
m_byCableType = 0;
} // standard constructor
void SetDstDevID(UINT32 uiDevID){m_uiDevID = uiDevID;}
void SetCableType(BYTE byCableType){ m_byCableType = byCableType; }
// Dialog Data
//{{AFX_DATA(CDialRollCallCable)
enum { IDD = IDD_DIALOG_ROLLCALL_CABLE };
CListCtrl m_listRollCall;
//}}AFX_DATA
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CDialRollCallCable)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
// Generated message map functions
//{{AFX_MSG(CDialRollCallCable)
virtual BOOL OnInitDialog();
afx_msg void OnClose();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
protected:
void rollcallCable(); //点名请求
void searchSwitchRelay(); //搜索电缆头请求
static void NotifyFuc(LPARAM lMsgType, LPARAM lResStatus, LPVOID lpParam);
void ShowCableInfo();
void PreNetResponse(WPARAM wParam, LPARAM lParam);
LRESULT OnMsgCableRollCall(WPARAM wParam, LPARAM lParam);
protected:
char m_chData[MAX_ROLLCALL_LEN];
int m_iRecvLen;
UINT32 m_uiDevID;
bool m_bRollCallFin;
public:
afx_msg void OnBnClickedButtonServerCable();
afx_msg void OnBnClickedButtonCallLeader();
bool m_bSearchFlg;
CButton m_CButtonServer;
CButton m_CButtonCable;
BYTE m_byCableType;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_DIALROLLCALLCABLE_H__F20B0D29_493E_49FF_843E_3E79883A838C__INCLUDED_)