📄 nclient.h
字号:
// NClient.h : main header file for the NCLIENT application
//
#if !defined(AFX_NCLIENT_H__77A360EA_B5E1_4B6B_86F0_ADAA3855CC96__INCLUDED_)
#define AFX_NCLIENT_H__77A360EA_B5E1_4B6B_86F0_ADAA3855CC96__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
//System Statuse Define
#define STA_NORMAL 6000
#define REQ_NEWUSER 6001
/////////////////////////////////////////////////////////////////////////////
// CNClientApp:
// See NClient.cpp for the implementation of this class
//
#ifndef CARRAYMSG
#define CARRAYMSG
struct CArrayLastMsg
{
CArrayLastMsg(){
strData="";
pNext=NULL;
}
~CArrayLastMsg(){;}
CString strData;
CArrayLastMsg *pNext;
};
#endif
class CDlgMain;
class CNClientApp : public CWinApp
{
public:
CNClientApp();
CDlgMain *m_pMainDlg;
Cclient *m_socket;
CMyData m_pData;
int m_status;
CString m_strLastMsg;
CArrayLastMsg *m_arrLastMsg;
void DeleteLastMsg();
void AddLastMsg(CString nData);
void WriteData(CString strData);
CString m_ServerIP;
int m_ServerPort;
CString m_strUserCode;
CString m_strUserName;
CString m_strUserDesc;
bool m_IsConnect;
bool ToConnect();
bool LoadConfig();
bool SaveConfig();
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNClientApp)
public:
virtual BOOL InitInstance();
//}}AFX_VIRTUAL
// Implementation
//{{AFX_MSG(CNClientApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NCLIENT_H__77A360EA_B5E1_4B6B_86F0_ADAA3855CC96__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -