原文链接:[《第十八篇:在SOUI中实现PreTranslateMessage》](http://www.cnblogs.com/setoutsoft/p/4127333.html)
在MFC中,通常可以通过重载CWnd::PreTranslateMessage这样一个虚函数来实现对一些窗口消息的预处理。多用于tooltip的显示控制。
在SOUI中也实现了类似的机制。
要在SOUI中实现PreTranslateMessage,我们首先需要实现一个接口:
```c++
struct IMessageFilter
{
virtual BOOL PreTranslateMessage(MSG* pMsg) = 0;
};
`