Share via


ButtonView_t::DrawGroupBoxText (Windows Embedded CE 6.0)

1/6/2010

This method draws the text in a group box.

Syntax

static void DrawGroupBoxText(
  HWND hwnd,
  HBRUSH hbr,
  HDC hdc,
  WORD alignment
);

Parameters

  • hwnd
    [in] Handle to a window.
  • hbr
    [in] Handle to a brush.
  • hdc
    [in] Handle to a device context.
  • alignment
    [in] WORD that specifies the alignment of the text. The following table shows the values that you can use, in combination with other values listed later in this parameter description, to specify the horizontal and vertical alignment of the button.

    Value Description

    HOR_ALIGN_MASK

    Use to determine the horizontal alignment of the text.

    VER_ALIGN_MASK

    Use to determine the vertical alignment of the text.

    The following table shows the possible values that you can combine with HOR_ALIGN_MASK by using a bitwise-OR operation to set the horizontal alignment.

    Value Description

    BS_LEFT

    Left alignment

    BS_RIGHT

    Right alignment

    BS_CENTER

    Center horizontal alignment

    The following table shows the possible values that you can combine with VER_ALIGN_MASK by using a bitwise-OR operation to set the vertical alignment.

    Value Description

    BS_BOTTOM

    Bottom alignment

    BS_TOP

    Top alignment

    BS_VCENTER

    Center vertical alignment

Remarks

ButtonView_t::DrawGroupBoxText is called when the window receives a WM_SETTEXT message for the group box.

Requirements

Header buttonview.hpp
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

ButtonView_t
WM_SETTEXT