43 lines
967 B
C++
43 lines
967 B
C++
#pragma once
|
|
#include "afxcmn.h"
|
|
#include "afxwin.h"
|
|
#include "TcpClient.h"
|
|
|
|
|
|
class CQrMainDialog : public CDialogEx
|
|
{
|
|
DECLARE_DYNAMIC(CQrMainDialog)
|
|
|
|
public:
|
|
CQrMainDialog(CWnd* pParent = NULL); // 标准构造函数
|
|
virtual ~CQrMainDialog();
|
|
|
|
// 对话框数据
|
|
#ifdef AFX_DESIGN_TIME
|
|
enum { IDD = IDD_MAIN_DIALOG };
|
|
#endif
|
|
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
|
|
virtual BOOL PreTranslateMessage(MSG* pMsg);
|
|
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
public:
|
|
virtual BOOL OnInitDialog();
|
|
CTcpClient m_tcpClient;
|
|
BOOL m_bCamConnect;
|
|
CEdit m_EditMultiLine;
|
|
|
|
public:
|
|
afx_msg void OnTimer(UINT_PTR nIDEvent);
|
|
afx_msg LRESULT OnTcpNetMsg(WPARAM wparam, LPARAM lparam);
|
|
void ProcessPipeMsg(int lMsgId, char* pData, int lLen);
|
|
afx_msg void OnMenuConfig();
|
|
void HandleMessage(char * pMsg, int nMsgLen);
|
|
void AddLog2Edit(CString strMsg);
|
|
|
|
|
|
int m_nLastTag, m_nLastX, m_nLastY, m_nLastAngle;
|
|
};
|