BCGSuite for MFC
void CBCGPButton::SetAutorepeatMode ( int  nTimeDelay = 500)

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.