NMLVCUSTOMDRAW

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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
Windows Embedded CE Windows CE 2.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

List-View Controls Structures