Partilhar via


CMFCButton::SetAutorepeatMode

Sets a button to auto-repeat mode.

void SetAutorepeatMode(
   int nTimeDelay=500 
);

Parameters

  • [in] nTimeDelay
    A nonnegative number that specifies the interval between messages that are sent to the parent window. The interval is measured in milliseconds and its default value is 500 milliseconds. Specify zero to disable auto-repeat message mode.

Remarks

This method causes the button to constantly send WM_COMMAND messages to the parent window until the button is released, or the nTimeDelay parameter is set to zero.

Requirements

Header: afxbutton.h

See Also

Reference

CMFCButton Class

Hierarchy Chart