资源简介
Windows平台下的图形化的Ping工具(基于MFC的Dialog工程)
![](http://www.nz998.com/pic/69642.jpg)
代码片段和文件信息
// AutoCompleteComboBox.cpp : implementation file
//
#include “stdafx.h“
#include “WinPing.h“
#include “AutoCompleteComboBox.h“
// CAutoCompleteComboBox
IMPLEMENT_DYNAMIC(CAutoCompleteComboBox CComboBox)
CAutoCompleteComboBox::CAutoCompleteComboBox()
{
m_bAutoComplete = TRUE;
}
CAutoCompleteComboBox::~CAutoCompleteComboBox()
{
}
BEGIN_MESSAGE_MAP(CAutoCompleteComboBox CComboBox)
ON_CONTROL_REFLECT(CBN_EDITUPDATE &CAutoCompleteComboBox::OnEditUpdate)
END_MESSAGE_MAP()
// CAutoCompleteComboBox message handlers
BOOL CAutoCompleteComboBox::PreTranslateMessage(MSG *pMsg)
{
if(WM_KEYDOWN == pMsg->message)
{
m_bAutoComplete = TRUE;
if((VK_DELETE == pMsg->wParam) || (VK_BACK == pMsg->wParam))
{
m_bAutoComplete = FALSE;
}
}
return CComboBox::PreTranslateMessage(pMsg);
}
void CAutoCompleteComboBox::OnEditUpdate()
{
if(!m_bAutoComplete)
{
return ;
}
CString strText(_T(““));
GetWindowText(strText);
int nLen = strText.GetLength();
DWORD dwCurSel = GetEditSel();
WORD wStart = LOWORD(dwCurSel);
WORD wEnd = HIWORD(dwCurSel);
if(CB_ERR == SelectString(-1 strText))
{
SetWindowText(strText);
if(CB_ERR != dwCurSel)
{
SetEditSel(wStart wEnd);
}
}
if((wEnd < nLen) && (CB_ERR != dwCurSel))
{
SetEditSel(wStart wEnd);
}
else
{
SetEditSel(nLen -1);
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1393 2010-04-20 15:13 WinPing\AutoCompleteComboBox.cpp
文件 388 2010-04-20 15:07 WinPing\AutoCompleteComboBox.h
文件 2351 2010-04-20 14:11 WinPing\ProtoInfo.cpp
文件 1612 2010-04-20 13:50 WinPing\ProtoInfo.h
....... 67777 2007-11-28 16:21 WinPing\res\WinPing.ico
文件 398 2010-04-20 10:53 WinPing\res\WinPing.rc2
文件 771 2010-04-20 10:56 WinPing\resource.h
文件 209 2010-04-20 10:53 WinPing\stdafx.cpp
文件 2029 2010-04-20 10:53 WinPing\stdafx.h
文件 1432 2010-04-20 10:53 WinPing\targetver.h
文件 2678 2010-04-20 11:17 WinPing\WinPing.cpp
文件 170496 2010-04-20 17:38 WinPing\WinPing.exe
文件 609 2010-04-20 11:15 WinPing\WinPing.h
文件 5849 2010-04-20 17:35 WinPing\WinPing.rc
文件 879 2010-04-20 10:53 WinPing\WinPing.sln
..A..H. 14848 2010-04-20 17:56 WinPing\WinPing.suo
文件 5778 2010-04-20 15:13 WinPing\WinPing.vcproj
文件 10254 2010-04-20 17:25 WinPing\WinPingDlg.cpp
文件 989 2010-04-20 15:16 WinPing\WinPingDlg.h
目录 0 2010-04-20 17:57 WinPing\Debug
目录 0 2010-04-20 10:53 WinPing\res
目录 0 2010-04-20 17:57 WinPing
----------- --------- ---------- ----- ----
290740 22
- 上一篇:PBIL算法源代码C++
- 下一篇:VC++病毒编程入门
相关资源
- qt cmd实现ping
- Qt5串口通信-windows
- stm32 +w5500 裸机 远程升级 自动dns pi
- 新编Windows API参考大全.doc
- windows hook 框架(detours )
- windows网络编程_文件传输
- Windows扩展命令程序(源码)
- LabwindowsCVI 串口编程及事例.docx
- Windows_API_函数大全 C/C++
- VC源码获取WINDOWS系统所有的用户密码
- c语言 Windows_程序设计_第五版
- windows下的ffmpeg、MFC制作的播放器
- 逐梦旅程 Windows游戏编程之从零开始
- 使用socket套接字发送udp数据包
- plist 文件文本二进制互转
- Windows游戏编程大师技巧(CHM)
- Windows+C语言构建网络聊天室内含源程
- C++商品管理系统50页报告+源码。代码
- MFC可视化界面ping程序
- c++ 帮助手册 chm
- Hoo WinTail 最新版本(v4.2.982)破解补丁
- Gray-Level Grouping (GLG)的算法实现
-
C++调用Windows MediaPla
yer实现的多媒体 - 计算机网络课程设计之Ping程序含C++原
- WIndow下使用QT C++开发生成带Logo的二维
- winTC(windows下的c语言编译器
- php-cpp项目移值到windows的vs2017解决方案
- Programming Windows with MFC随书光盘源代码
- 精通Windows.API-函数、接口、编程(光
- C语言网页爬虫(附编译好的windows版)
评论
共有 条评论