BCGSuite for MFC
void CBCGPCalendarMenuButton::EnableTearOff ( UINT  uiID,
int  nVertDockColumns = -1,
int  nHorzDockRows = -1 
)

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

Call this member function to enable the "tear-off" feature for the calendar 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 calendar bar in tear-of state
nHorzDockRowsSpecifies a number of rows for the horizontally docked calendar bar in tear-off state