摘要
介绍了Windows消息机制,重点讨论了消息的组成,VB应用程序中消息的传送过程,分析了如何使用API函数拦截VB应用程序中对象的消息,从而解决了VB应用程序中某些对象对特定消息的不响应问题。应用文中所介绍的方法,作者在教育机器人平台软件中成功地实现了鼠标滚轮消息的拦截,提高了软件操作的灵活性。实践证明,这种消息拦截技术有很强的实用性,可以解决一些VB中用常规方法不能解决的问题,实现关键技术的突破。
The paper describes Microsoft Windows message mechanism and highlights the components of message, the transport process of message in visual basic application program. It analyzes that how to intercept message with API, solves the problem that some objects can't respond to special message in visual basic program. With the method presented in this paper, the interception of mouse wheel message is realized in education robot platform software, enhances the convenience of manipulating the software. As proved in the practice, the interception technology is really practical.It can be used to solve some difficult problems that can't be solved by normal method in visual basic.
出处
《信息技术》
2005年第7期146-149,共4页
Information Technology