• 7190阅读
  • 3回复

【提问】如何取得windows的消息 [复制链接]

上一主题 下一主题
离线sunbo
 
只看楼主 倒序阅读 楼主  发表于: 2005-12-20
像在程序中使用自定义消息,但是不知道怎样用qt取得操作系统的消息?请高手指点,多谢了
离线XChinux

只看该作者 1楼 发表于: 2005-12-20
bool QCoreApplication::winEventFilter ( MSG * msg, long * result ) [virtual]
The message procedure calls this function for every message received. Reimplement this function if you want to process window messages msg that are not processed by Qt. If you don't want the event to be processed by Qt, then return true and set result to the value that the window procedure should return. Otherwise return false.
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
离线XChinux

只看该作者 2楼 发表于: 2005-12-20
Reimplement winEventFilter()
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
离线sunbo
只看该作者 3楼 发表于: 2005-12-21
thank you both above, it is really very convenient to use.
快速回复
限100 字节
 
上一个 下一个