BCGSuite for MFC
void CBCGPButton::SetTemporaryDisabled ( UINT  nDelay,
LPCTSTR  lpszTempDisabledFmt = _T(" (%d)"),
BOOL  bCounterOnRight = TRUE,
BOOL  bHide = FALSE 
)

Make the push button temporarily disabled for the specified number of seconds.

Parameters
nDelayThe number of seconds to be disabled.
lpszTempDisabledFmtThe backward counter text format of the temporarily disabled button. " (%d)" by default.
bCounterOnRightSpecifies whether the backward counter text label is located on the right. TRUE by default.
bHideSpecifies whether the temporarily disabled push button should be hidden. FALSE by default.