BCGControlBar Pro for MFC
void CBCGPTaskDialog::AddCommandControl ( int  nCommandControlID,
const CString &  strCaption,
BOOL  bEnabled = TRUE,
BOOL  bRequiresElevation = FALSE 
)

Adds a new command button control to the CBCGPTaskDialog.

Parameters
nCommandControlIDThe command control identification number.
strCaptionThe string that the CBCGPTaskDialog displays to the user. Use this string to explain the purpose of the command.
bEnabledA Boolean parameter that indicates if the new button is enabled or disabled.
bRequiresElevationA Boolean parameter that indicates whether a command requires elevation.