Compartilhar via


NMLVCUSTOMDRAW (Compact 2013)

3/28/2014

This structure contains information specific to an NM_CUSTOMDRAW message sent by a list-view control.

Syntax

typedef struct tagNMLVCUSTOMDRAW {
  NMCUSTOMDRAW nmcd;
  COLORREF clrText;
  COLORREF clrTextBk;
  #if (_WIN32_IE >= 0x0400)
    int iSubItem;
  #endif
  DWORD dwItemType;
  RECT rcText;
  UINT uAlign;
} NMLVCUSTOMDRAW, *LPNMLVCUSTOMDRAW;

Members

  • nmcd
    NMCUSTOMDRAW structure that contains general custom draw information.
  • clrText
    COLORREF value that represents the color that is used to display text foreground in the list-view control.
  • clrTextBk
    COLORREF value that represents the color that is used to display text background in the list-view control.
  • iSubItem
    Index of the subitem that is being drawn. If the main item is being drawn, this member will be zero.
  • dwItemType
    DWORD that contains the type of the item to draw. This member can be one of the following values.

    Value

    Description

    LVCDI_ITEM

    An item is to be drawn.

    LVCDI_GROUP

    A group is to be drawn.

  • rcText
    RECT that specifies the rectangle in which the text is to be drawn.
  • uAlign
    UINT that specifies how a group should be aligned. This member can be one of the following values.

    Value

    Description

    LVGA_HEADER_CENTER

    Center the group.

    LVGA_HEADER_LEFT

    Align the group on the left.

    LVGA_HEADER_RIGHT

    Align the group on the right.

Requirements

Header

commctrl.h

See Also

Reference

List-View Controls Structures