Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.


The framework's hook function calls this member function to filter and respond to certain Windows messages.

virtual BOOL ProcessMessageFilter(
   int code,
   LPMSG lpMsg 



Specifies a hook code. This member function uses the code to determine how to process lpMsg.


A pointer to a Windows MSG structure.

Nonzero if the message is processed; otherwise 0.

A hook function processes events before they are sent to the application's normal message processing.

If you override this advanced feature, be sure to call the base-class version to maintain the framework's hook processing.

Community Additions

© 2015 Microsoft