BOOL CallMsgFilter(lpMsg,nCode)
This function passes the given message and code to the current message filter function. The message filter function is an application-specified function that examines and modifies all messages. An application specifies the function by using the SetWindowsHook function.
Parameter | Type/Description |
lpMsg | LPMSG Points to an MSG data structure that contains the message to be filtered. | |
nCode | int Specifies a code used by the filter function to determine how to process the message. |
The return value specifies the state of message processing. It is FALSE if the message should be processed. It is TRUE if the message should not be processed further.
The CallMsgFilter function is usually called by Windows to let applications examine and control the flow of messages during internal processing in menus and scroll bars or when moving or sizing a window.
Values given for the nCode parameter must not conflict with any of the MSGF_ and HC_ values passed by Windows to the message filter function.