窗口大小
hWnd = CreateWindow(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,
CW_USEDEFAULT, 0, 680, 640, NULL, NULL, hInstance, NULL);
在资源文件Resource.h中添加控件ID
#define IDB_BUTTON_LOGIN 111
#define IDB_BUTTON_RESET 113
#define IDB_BUTTON_SEND 114
#define IDB_BUTTON_UPDATE 115
//声明变量
HWND Login_Button; //登录按钮
HWND Reset_Button; //登录信息重置
HWND Update_Button; //发送信息重置
HWND Send_Button; //发送信息
HWND edit_ip; //输入id编辑框
HWND edit_port; //输入端口号编辑框
HWND edit_name; //输入昵称编辑框
static HWND hWinRich_recv; //接收文本框
static HWND hWinRich_send; //发送文本框
static HWND hWinRich; //即