Partager via


ButtonView_t::DrawGroupBoxText

This method draws the text in a group box.

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

OS Versions: Windows CE .NET 4.0 and later.
Header: Buttonview.hpp.

See Also

WM_SETTEXT

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.