CommandHandler
CommandHandler
is the function identified by the third parameter of the COMMAND_HANDLER macro in your message map.
Syntax
LRESULT CommandHandler(
WORD wNotifyCode,
WORD wID,
HWND hWndCtl,
BOOL& bHandled);
Parameters
wNotifyCode
The notification code.
wID
The identifier of the menu item, control, or accelerator.
hWndCtl
A handle to a window control.
bHandled
The message map sets bHandled to TRUE before CommandHandler
is called. If CommandHandler
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 COMMAND_HANDLER.