BCGControlBar Pro for MFC
void CBCGPButton::SetAutorepeatMode ( int  nTimeDelay = 500,
int  nAutoRepeatAccelerationRatio = 0 
)

Puts a button in the autorepeat mode.

Call this function to put a button in the autorepeat mode. In this mode, the button constantly, until released, sends WM_COMMAND messages to the parent window with the interval specified by nTimeDelay.

To disable the autorepeat mode you should call this function with nTimeDelay set to 0.

Parameters
nTimeDelaySpecifies the delay (in milliseconds) between messages.
nAutoRepeatAccelerationRatioSpecifies the autorepeat acceleration ratio. If this parameter is zero (default value), the autorepeat will be performed without acceleration.