📄 timeclientdlg.h
字号:
// TimeClientDlg.h : header file
//
#if !defined(AFX_TIMECLIENTDLG_H__69128CB9_B3A4_4875_90DF_79A84D19515F__INCLUDED_)
#define AFX_TIMECLIENTDLG_H__69128CB9_B3A4_4875_90DF_79A84D19515F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "TupSocket.h"
#include "Query.h"
#include "animateicon.h"
#include "ntray.h"
#define _TIMERSVR_PORT 3340 //登陆的服务器
#define _TIMERSVR_PORTS 3339 //自已做为网关
struct FW
{
char mark;
char Diqu[10];
char yhnub[4];
};
struct FWZ//写在自后
{
char mark;
char Diqu[10];
char yhnub[4];
char end_flag;
};
struct CManCount //计费
{
long rc; //时间:四位年,两位月,两位日,
long BeginTime; //开始时间。 以秒为单位。一天有86400秒
long UpTime; //摘机时间。以秒为单位。
long EndTime; //挂机时间。
long zxh; //坐席号。
long gh; //坐在当前位置上的工号。
long cs; //次数; //offset
long ServerCode; //服务代码;
char s_zjh[16]; //主叫号:15位。
// long jb; //(级别) 0为新用户,1为本月老用户,2为已往老用户 xfdh.dbf
// long lb; //(甲乙) 1为甲类 2为乙类 xfdh.cpp
// long zx; //专线标致,0为非专线,1为专线,2专家专线,3多人聊天。9为休息
};
/////////////////////////////////////////////////////////////////////////////
// CTimeClientDlg dialog
class CTimeClientDlg : public CDialog
{
// Construction
public:
CTimeClientDlg(CWnd* pParent = NULL); // standard constructor
virtual void OnSocketConnect(CTupSocket * pSocket, int nErrorCode); //Client 联接。
virtual void OnSocketAccept(CTupSocket * pSocket, int nErrorCode);//{;} //Server 接受
virtual void OnSocketReceive(CTupSocket * pSocket, int nErrorCode);
virtual void OnSocketClose(CTupSocket * pSocket, int nErrorCode);
virtual void OnSocketSend(CTupSocket * pSocket, int nErrorCode){;}
// Dialog Data
//{{AFX_DATA(CTimeClientDlg)
enum { IDD = IDD_TIMECLIENT_DIALOG };
CIPAddressCtrl m_ipAddr;
CListCtrl m_listClient;
CListBox m_listMsg;
CIPAddressCtrl m_ipAddrc;
CString m_strPortc;
CString m_strPort;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTimeClientDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
CFile handle;
CString str,str2,str1,d,b,strr,str3;
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CTimeClientDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
virtual void OnCancel();
virtual void OnOK();
afx_msg void OnButtonDelete();
afx_msg void OnButtonConnect();
afx_msg void OnButtonClose();
afx_msg void OnButtonCreate();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnDestroy();
afx_msg void OnOpenApplication();
afx_msg void OnApplicationExit();
afx_msg void OnClose();
afx_msg void Ontj();
afx_msg void OnSc();
//}}AFX_MSG
afx_msg LRESULT OnTrayNotification(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
public:
// void OnButtonConnect();
// void OnButtonCreate();
private:
DWORD m_dwServerIpAddress;
CTupSocket * m_pSocket;//登陆的服务器
BOOL m_bIsConnect;
private:
CTupSocket * m_pListenSocket;
#define MAX_CLIENT 32
CTupSocket * m_pzClientSocket[MAX_CLIENT]; //客户端
// long m_lOffset[MAX_CLIENT]; //客户端当前的RGTFileOffset 新
// long m_lRenewOffset[MAX_CLIENT]; //客户端当前的RGTFileOffset 补
void DeleteListenSocket();
void DeleteClientSocket();
CTupSocket* CreateSocket();
void DeleteSocket(CTupSocket** ppSocket);
CString m_strCurrentTime;
public:
CIPAddressCtrl m_ipAddrClient[MAX_CLIENT];
CString m_strSend;
void msg_put(char * msg);
char g_szRecvBuffer[1024];
char fn[100];
CRecvPacket m_RecvPacket;
CSendPacek m_SendPacket;
int int1;
public:
// int checkNes(long &offset,CSendRgtJFPacket &RgtJFPacket);
// int checkNesRenew(long &offset,CSendRgtJFPacket &RgtJFPacket);
public:
BOOL m_open_application;
public:
CTrayNotifyIcon m_TrayIcon;
HICON m_hIcons[2];
CAnimateIcon m_animIcon;
UINT m_timerID;
public:
void Ddq(long qq,CTupSocket * pSocket,char *clip);
bool PD(char *ss,char *clip);
char k2[8];
long k1;
int OnAdddisphone(char *zjh);
long SETMM(char *zjhc);//设置密码(修改)(只能本机设置密码)
BOOL bWorking;//findfile
CFileFind finder;
char msg[200];
CString strTmp;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TIMECLIENTDLG_H__69128CB9_B3A4_4875_90DF_79A84D19515F__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -