Provides a site with the opportunity to process a message that is received by a control's own window before the control itself does any processing.
HRESULT PreMessageFilter(
HWND hWnd, //Handle of window receiving message
UINT msg, //Received message
WPARAM wp, //WPARAM of message
LPARAM lp, //LPARAM of message
LRESULT* plResult, //Pointer to variable to receive result of
//message processing
DWORD* pdwCookie //Pointer to a variable used later
);
Successful return values indicate whether the site wishes to allow further processing. S_OK indicates further processing, whereas S_FALSE means do not process further. S_OK also indicates that the control must later call ISimpleFrameSite::PostMessageFilter.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later.
Windows CE: Unsupported.
Header: Declared in ocidl.h.
ISimpleFrameSite::PostMessageFilter