ON_REGISTERED_MESSAGE ( nMessageVariable, memberFxn )
Parametri
nMessageVariable
La variabile ID messaggio della finestra registrati.
memberFxn
Il nome della funzione di gestione dei messaggi a cui il messaggio viene mappato.
Osservazioni
La funzione di Windows RegisterWindowMessage viene utilizzata per definire un nuovo messaggio di finestra che è garantito l'univocità in tutto il sistema. Questa macro indica quale funzione gestirà il messaggio registrato.
Per ulteriori informazioni ed esempi, vedere Message Handling e mappatura argomenti nel manuale del programmatore di Visual C++.
Esempio
/ / esempio per O&N_REGISTERED_MESSAGE
const UINT wm_Find = RegisterWindowMessage (FINDMSGSTRING)
BEGIN_MESSAGE_MAP (CMyWnd, CMyParentWndClass)
nbsp; //{{AFX_MSG_MAP (CMyWnd)
ON_REGISTERED_MESSAGE (wm_Find, OnFind)
// ... Forse più voci per gestire i messaggi aggiuntivi
//}}AFX_MSG_MAP
END_MESSAGE_MAP)
Vedere anchenbsp;O&N_MESSAGE, ON_UPDATE_COMMAND_UI, ON_CONTROL, ON_COMMAND, :: RegisterWindowMessage, i gestori definiti dall'utente