BCGControlBar Pro for MFC
void CBCGPRibbonButton::EnablePopupDialog ( CRuntimeClass *  pRTI,
LPCTSTR  lpszTemplateName,
BOOL  bIsResizable = FALSE,
BOOL  bIsDefaultCommand = FALSE,
BOOL  bIsRightAligned = FALSE 

Enables the popup dialog associated with this button.

pRTIThe popup dialog runtime class. Should be derived from CBCGPDialog
lpszTemplateNameThe popup dialog resource name.
bIsResizableSpecifies whether the popup dialog is resizable or not.
bIsDefaultCommandSpecifies whether the button can still execute its command (TRUE), or always displays popup dialog (FALSE).
bIsRightAlignedSpecifies whether the popup dialog is right-aligned or not.