浅析windows消息机制
摘要:
Windows系统是一个消息驱动的OS,什么是消息呢?我很难说得清楚,也很难下一个定义,我下面从不同的几个方面讲解一下,希望大家看了后有一点了解。 1、消息的组成:一个消息由一个消息名称(UINT),和两个参数(WPARAM,LPARAM)。当用户进行了输入或是窗口的状态发生改变时系统都会发送消息到某一个窗口。例如当菜单转中之后会有WM_COMMAND消息发送,WPARAM的高字中(HIWOR... 阅读全文
posted @ 2010-04-02 00:46 justbest 阅读(233) 评论(0) 推荐(0) 编辑