NotifyHandler
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at NotifyHandler.
The name of the function identified by the third parameter of the NOTIFY_HANDLER
macro in your message map.
Syntax
LRESULT
NotifyHandler
(
int idCtrl,
LPNMHDR pnmh,
BOOL& bHandled);
Parameters
idCtrl
The identifier of the control sending the message.
pnmh
Address of an NMHDR structure that contains the notification code and additional information. For some notification messages, this parameter points to a larger structure that has the NMHDR structure as its first member.
bHandled
The message map sets bHandled
to TRUE before NotifyHandler is called. If NotifyHandler does not fully handle the message, it should set bHandled
to FALSE to indicate the message needs further processing.
Return Value
The result of message processing. 0 if successful.
Remarks
For an example of using this message handler in a message map, see NOTIFY_HANDLER.