BCGControlBar Pro for MFC
BOOL CBCGPCtrlPlaceHolderHelper::CreateOnPlaceHolder ( CWnd *  pParent,
UINT  nIDPlaceHolder,
UINT  nID = 0,
DWORD  dwStyle = WS_TABSTOP|WS_CHILD|WS_VISIBLE,
BOOL  bDestroyPlaceHolder = FALSE,
LPVOID  lParam = NULL 
)

Creates control on the placeholder location.

Parameters
pParentA pointer to a parent window. Must not be NULL.
nIDPlaceHolderThe control ID of the placeholder control.
nIDThe control ID. If this parameter is zero, nIDPlaceHolder will be used.
dwStyleSpecifies the window style. Default value is WS_TABSTOP | WS_CHILD | WS_VISIBLE.
bDestroyPlaceHolderSpecifies whether placeholder window should be destroyed. If this parametr is FALSE, placeholder window will be disabled and invisible.
lParamControl-specific data.
Returns
TRUE if control was successfully created, FALSE otherwise.