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

正文內(nèi)容

畢業(yè)設(shè)計(jì)-tcpip的網(wǎng)絡(luò)文字聊天程序設(shè)計(jì)(編輯修改稿)

2025-01-08 19:58 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 age handlers BOOL CClientDlg::OnInitDialog() { CDialog::OnInitDialog()。 10 // Add About... menu item to system menu. // IDM_ABOUTBOX must be in the system mand range. ASSERT((IDM_ABOUTBOX amp。 0xFFF0) == IDM_ABOUTBOX)。 ASSERT(IDM_ABOUTBOX 0xF000)。 CMenu* pSysMenu = GetSystemMenu(FALSE)。 if (pSysMenu != NULL) { CString strAboutMenu。 (IDS_ABOUTBOX)。 if (!()) { pSysMenuAppendMenu(MF_SEPARATOR)。 pSysMenuAppendMenu(MF_STRING, IDM_ABOUTBOX, strAboutMenu)。 } } // Set the icon for this dialog. The framework does this automatically // when the application39。s main window is not a dialog SetIcon(m_hIcon, TRUE)。 // Set big icon SetIcon(m_hIcon, FALSE)。 // Set small icon // TODO: Add extra initialization here ()。 (this)。 11 return TRUE。 // return TRUE unless you set the focus to a control } void CClientDlg::OnSysCommand(UINT nID, LPARAM lParam) { if ((nID amp。 0xFFF0) == IDM_ABOUTBOX) { CAboutDlg dlgAbout。 ()。 } else { CDialog::OnSysCommand(nID, lParam)。 } } // If you add a minimize button to your dialog, you will need the code below // to draw the icon. For MFC applications using the document/view model, // this is automatically done for you by the framework. void CClientDlg::OnPaint() { if (IsIconic()) { CPaintDC dc(this)。 // device context for painting 12 SendMessage(WM_ICONERASEBKGND, (WPARAM) (), 0)。 // Center icon in client rectangle int cxIcon = GetSystemMetrics(SM_CXICON)。 int cyIcon = GetSystemMetrics(SM_CYICON)。 CRect rect。 GetClientRect(amp。rect)。 int x = (() cxIcon + 1) / 2。 int y = (() cyIcon + 1) / 2。 // Draw the icon (x, y, m_hIcon)。 } else { CDialog::OnPaint()。 } } // The system calls this to obtain the cursor to display while the user drags // the minimized window. HCURSOR CClientDlg::OnQueryDragIcon() { return (HCURSOR) m_hIcon。 } 13 void CClientDlg::OnOK() { } void CClientDlg::ReceiveText() { char buffer[BUFFERSIZE]。 int len = (buffer,BUFFERSIZE)。 if (len != 1) { buffer[len] = 39。\039。 (buffer)。 } } void CClientDlg::OnLogin() { CString strIP,strPort。 UINT port 。 (strIP)。 (m_Name)。 (strPort)。 if (() || () || ()) { MessageBox(請(qǐng)?jiān)O(shè)置服務(wù)器信息 ,提示 )。 return。 } port = atoi(strPort)。 14 if ((strIP,port)) { MessageBox(連接服務(wù)器成功 !,提示 )。 CString str。 (%s%s,m_Name,進(jìn)入聊天室 )。 ((0),())。 } else { MessageBox(連接服務(wù)器失敗 !,提示 )。 } } void CClientDlg::OnSendText() { CString strText,strInfo。 (strText)。 if (!() amp。amp。 !()) { (%s 說(shuō) : %s,m_Name,strText)。 int len = ((()),strI())。 } } void CClientDlg::OnChangeServerip() { // TODO: If this is a RICHEDIT control, the control will not 15 // send this notification unless you override the CDialog::OnInitDialog() // function and call CRichEditCtrl().SetEventMask() // with the ENM_CHANGE flag ORed into the mask. // TODO: Add your control notification handler code here } 2. 服務(wù)器界面主要代碼: // : implementation file // include include include include ifdef _DEBUG define new DEBUG_NEW undef THIS_FILE static char THIS_FILE[] = __FILE__。 endif
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1