Share via


CMFCToolBarDateTimeCtrl::NotifyCommand

Specifies whether the button processes the WM_COMMAND message.

virtual BOOL NotifyCommand(
   int iNotifyCode
);

Parameters

  • [in] iNotifyCode
    The notification message that is associated with the command.

Return Value

TRUE if the button processes the WM_COMMAND message, or FALSE to indicate that the message should be handled by the parent toolbar.

Remarks

The framework calls this method when it is about to send a WM_COMMAND message to the parent window.

This method extends the base class implementation (CMFCToolBarButton::NotifyCommand) by processing the DTN_DATETIMECHANGE notification. It updates the internal time status and updates the time property of all CMFCToolBarDateTimeCtrl objects with the same command ID.

Requirements

Header: afxtoolbardatetimectrl.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCToolBarDateTimeCtrl Class

WM_COMMAND

CMFCToolBarButton::NotifyCommand

DTN_DATETIMECHANGE