标题:【提问】如何取得windows的消息
作者:sunbo
日期:2005-12-20 22:53
内容:
像在程序中使用自定义消息,但是不知道怎样用qt取得操作系统的消息?请高手指点,多谢了
#1 [XChinux 12-20 23:18]
bool QCoreApplication::winEventFilter ( MSG * msg, long * result )
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.
#2 [XChinux 12-20 23:20]
Reimplement winEventFilter()
#3 [sunbo 12-21 01:44]
thank you both above, it is really very convenient to use.