BCGControlBar Pro for MFC
void CBCGPColorMenuButton::EnableTearOff ( UINT  uiID,
int  nVertDockColumns = -1,
int  nHorzDockRows = -1 
)

Changes an ability to have tear-off state for the color bar

Call this member function to enable the "tear-off" feature for the color bar that pops up when the button is pressed.

Parameters
uiIDSpecifies a new ID for the tear-of bar
nVertDockColumnsSpecifies a number of columns for the vertically docked color bar in tear-of state
nHorzDockRowsSpecifies a number of rows for the horizontally docked color bar in tear-off state