Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
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

NMCUSTOMDRAWstructure that contains general custom draw information.

clrText

COLORREFvalue that represents the color that is used to display text foreground in the list-view control.

clrTextBk

COLORREFvalue 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