摘要
论文设计了一种基于Windows窗口句柄的自动选择工具,该工具在即时通讯软件中具有一定的应用价值,它可以迅速准确地帮助用户定位聊天对象。该工具利用唯一标识窗口句柄绑定目标窗口,待系统收到WM_COMMAND消息后根据存储的Windows窗口句柄设置绑定窗口为当前活动窗口,并把键盘焦点设置到该窗口上。该工具利用ini文件保存最后一次绑定的窗口名称。当程序中存储窗口句柄的变量为空时,根据ini文件中的记录绑定目标窗口。
In this paper, a new intelligent selecti0n tool which based on the window handle was designed. The tool is helpful in instant-messaging Software. It can quickly and accurately identify some0rie who you are chatting with. Binding is Controlle'd by the window handle. After the system receivd the WM_COMMAND message, it will set the binding window io window current activities and set the keyboard focus to the window. This to01 use ini file to save the name of last hinded window When the variable stored the window handle is emntv, it hind the window according, to the ini flip .
出处
《微计算机信息》
2012年第3期181-183,共3页
Control & Automation
关键词
窗口句柄
目标窗口
即时通讯
蛐文件
window handle
mouse capture
instant messaging
ini file