BCGControlBar Pro for MFC
int CBCGPTaskDialog::GetSelectedCommandControlID ( ) const

Returns the selected command button control.