BCGControlBar Pro for MFC
BarElementAlignment CBCGPCaptionBar::GetAlignment ( BarElement  elem)

Returns alignment of the specified element.

Returns
BarElementAlignment enumerated value, which specifies alignment of an element (button, bitmap, text, icon).

Call this function to retrieve alignment of the specified by elem element. It can be one of the following values:

  • ALIGN_INVALID
  • ALIGN_LEFT
  • ALIGN_RIGHT
  • ALIGN_CENTER

You specify an element's alignment when you call CBCGPCaptionBar::SetButton, CBCGPCaptionBar::SetBitmap, CBCGPCaptionBar::SetIcon and CBCGPCaptionBar::SetText functions.

Parameters
elemSpecifies an caption bar element whose alignment to be retrieved. It can be either ELEM_BUTTON, ELEM_TEXT or ELEM_ICON (for bitmap and icon)