我今天写的是通过windows的api搭建界面和效果的实现 代码分为服务器端的代码,客户端的代码 客户端和服务器代码结构分为 1.界面绘制 2.网络通信模块 3.多线程管理模块 4.消息处理模块 //客户端代码 #include <Windows.h> #include <string.h> #include <tchar.h> #include <stdio.h> #include <Commctrl.h> #pragma comment(lib,"wsock32.lib") #include<Windows.h> #include<iostream> #include<string> #define ID_STATE 1 #define ID_TEXTLIST 2 #define ID_SENDTEXT 3 #define ID_CLOSE 4 #define ID_SEND 5 #define ID_CONNECT 6 #define ID_CLOSELINK 7 #define ID_IP 8 #define ID_CLIENTLIST 9 //全局变量 TCHAR...