Поделиться через


CWinApp::ProcessMessageFilter

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

virtual BOOL ProcessMessageFilter(
   int code,
   LPMSG lpMsg 
);

Параметры

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

  • 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.

Требования

Header: afxwin.h

См. также

Основные понятия

CWinApp Class

CWinApp Members

Hierarchy Chart

MessageProc

About Hooks