CommandHandler
CommandHandler
is the function identified by the third parameter of the COMMAND_HANDLER macro in your message map.
LRESULT CommandHandler(
WORD wNotifyCode,
WORD wID,
HWND hWndCtl,
BOOL& bHandled);
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.
The result of message processing. 0 if successful.
For an example of using this message handler in a message map, see COMMAND_HANDLER.