BCGSuite for MFC
virtual BOOL CBCGPBreadcrumb::Create ( const RECT &  rect,
CWnd *  pParentWnd,
UINT  nID,
DWORD  dwStyle = WS_CHILD|WS_TABSTOP|WS_VISIBLE|WS_BORDER|BCCS_WANTRETURN|BCCS_EXTERNALBORDER,
DWORD  dwStyleEx = 0 
)
virtual

Creates the breadcrumb control as the child control of specified window.

Example:

Copy
m_wndBreadcrumb.Create(WS_CHILD | WS_VISIBLE, rectBreadcrumb, this, IDC_BREADCRUMB);

The following styles are specific to this control:

  • BCCS_SHOWROOTALWAYS: forces the root item to be always shown in the breadcrumb control. Without this style root item is shown only when selected. Either way it is accessible through the leftmost dropdown list.
  • BCCS_WANTRETURN: specifies that a highlighted item will be selected when the user presses the ENTER key. Without this style, pressing the ENTER key has the same effect as pressing the dialog box's default pushbutton.
  • BCCS_EXTERNALBORDER: specifies that the top and bottom borders of items will not be painted. Use this style if the item border color coincides with the background color of parent dialog or if WS_BORDER style is used.
Parameters
rectSpecifies size and position of Breadcrumb control.
pParentWndA pointer to a parent window. Must not be NULL.
nIDSpecifies Control ID.
dwStyleSpecifies Windows styles for Breadcrumb control.
dwStyleExSpecifies extended styles.