freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

vc設(shè)計(jì)簡(jiǎn)單的聊天室的程序設(shè)計(jì)畢業(yè)論文(參考版)

2025-06-29 20:20本頁(yè)面
  

【正文】 }。}void CClientDlg::OnDblclkListUser() { // TODO: Add your control notification handler code here (1)。 CString strOut = strForm + 對(duì) + strTo + 說(shuō): + strMsg。 } CString strForm = 。 if(strTo==_T()) { strTo = 所有人。}void CClientDlg::ShowMessage(const NETMESSAGE amp。}void CClientDlg::ShowInDisplay(CString str){ m_strDisplay += str + \r\n。 CString strMsg = 。 } // 發(fā)送該信息 (netMessage)。 } else { strcpy(, _T(所有人))。 return。 } if(m_bWhispering) { // 密語(yǔ) CString strTo = 。 strcpy(, m_strSend)。 // 主要是填充NETMESSAGE結(jié)構(gòu)體 NETMESSAGE netMessage。 ()。 GetDlgItem(IDC_BN_CLOSE)EnableWindow(FALSE)。 m_bConnect = FALSE。 ShowInDisplay(strMsg)。 CString strMsg。 break。 case PTC_CLIENT_QUIT: // 有用戶退出 ((1, strForm))。 ShowMessage(netMessage)。 case PTC_SAY: ShowMessage(netMessage)。 ShowInDisplay(strMsg)。 break。 CString strMsg = 。 // 過(guò)濾自已發(fā)出的信息 if(strForm==m_strName) return。netMessage, sizeof(netMessage))。}void CClientDlg::OnReceive(){ NETMESSAGE netMessage。 m_strSend = _T()。 ShowInDisplay(strMsg)。 CString strMsg。 GetDlgItem(IDC_BN_SEND)EnableWindow(FALSE)。 GetDlgItem(IDC_BN_CONNECT)EnableWindow(TRUE)。}void CClientDlg::OnBnClose() { if(m_bConnect) { ()。 GetDlgItem(IDC_BN_CLOSE)EnableWindow(TRUE)。 (netMessage)。 m_bConnect = TRUE。 } (IDS_SUCCEED_CONNECT)。 ShowInDisplay(strConnectError)。 // 連接服務(wù)器 if(!(m_strNetIP, m_iNetPort)) { int n = ()。 (IDS_CONNECTING)。 return。 // 創(chuàng)建套接字 if(!()) { (IDS_FAIL_CREATE_SOCKET)。 if(iResult==IDCANCEL){return。 // 獲取用戶名字 CInputDlg inputDlg。 }}HCURSOR CClientDlg::OnQueryDragIcon(){ return (HCURSOR) m_hIcon。 (x, y, m_hIcon)。 int x = (() cxIcon + 1) / 2。 GetClientRect(amp。 int cyIcon = GetSystemMetrics(SM_CYICON)。 // device context for painting SendMessage(WM_ICONERASEBKGND, (WPARAM) (), 0)。 } else { CDialog::OnSysCommand(nID, lParam)。 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout。 return TRUE。 GetDlgItem(IDC_BN_CLOSE)EnableWindow(FALSE)。 m_iNetPort = 3127。 // Set small icon // 參數(shù)初始化 (this)。 } } SetIcon(m_hIcon, TRUE)。 if (!()) { pSysMenuAppendMenu(MF_SEPARATOR)。 if (pSysMenu != NULL) { CString strAboutMenu。 ASSERT(IDM_ABOUTBOX 0xF000)。 ASSERT((IDM_ABOUTBOX amp。 DDX_Check(pDX, IDC_CHECK_WHISPERING, m_bWhispering)。 DDX_Text(pDX, IDC_EDIT_DIAPLAY, m_strDisplay)。}void CClientDlg::DoDataExchange(CDataExchange* pDX){ CDialog::DoDataExchange(pDX)。 m_bWhispering = FALSE。}BEGIN_MESSAGE_MAP(CAboutDlg, CDialog)END_MESSAGE_MAP() // CClientDlg dialogCClientDlg::CClientDlg(CWnd* pParent /*=NULL*/) : CDialog(CClientDlg::IDD, pParent){ m_strDisplay = _T()。 // DDX/DDV supportprotected: DECLARE_MESSAGE_MAP()}。 enum { IDD = IDD_ABOUTBOX }。}客戶端:// : implementation fileinclude include include ifdef _DEBUGdefine new DEBUG_NEWundef THIS_FILEstatic char THIS_FILE[ ] = __FILE__。 CString strOut = strForm + 對(duì) + strTo + 說(shuō): + strMsg。 } CString strForm = 。}// 顯示普通消息void CServerDlg::ShowMessage(NETMESSAGE netMessage){ CString strTo = 。 strcpy(netMessagedata, (LPCTSTR)strMsg)。 } // 加工信息 (IDS_NEW_CLIENT)。 strcpy(, (LPCTSTR)strMsg)。 indexiListLen。 CString strMsg。 // 發(fā)送用戶列表給該客戶 NETMESSAGE netMsg(PTC_USER_LIST, _T(), _T(), _T())。 // TODO: Add your message handler code here
點(diǎn)擊復(fù)制文檔內(nèi)容
高考資料相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1