Udostępnij za pośrednictwem


CMFCToolBarButton::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

This method returns FALSE.

Remarks

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

By default, this method returns FALSE. Override this method to return TRUE if you want to process the WM_COMMAND message or FALSE to indicate that the parent toolbar should handle the message.

Requirements

Header: afxtoolbarbutton.h

See Also

Concepts

MFC Hierarchy Chart

Reference

CMFCToolBarButton Class

WM_COMMAND