Partilhar via


User-Defined Handlers

The following map entries correspond to the function prototypes.

Map entry

Function prototype

ON_MESSAGE( <message>, <memberFxn> )

afx_msg LRESULT memberFxn( WPARAM, LPARAM );

ON_REGISTERED_MESSAGE( <nMessageVariable>, <memberFxn> )

afx_msg LRESULT memberFxn( WPARAM, LPARAM );

ON_THREAD_MESSAGE( <message>, <memberFxn> )

afx_msg void memberFxn( WPARAM, LPARAM );

ON_REGISTERED_THREAD_MESSAGE( <nMessageVariable>, <memberFxn> )

afx_msg void memberFxn( WPARAM, LPARAM );

See Also

Reference

Message Maps (MFC)

Handlers for WM_ Messages