Compartilhar via


NMLVCUSTOMDRAW (Windows CE 5.0)

Send Feedback

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

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

OS Versions: Windows CE 2.0 and later.
Header: Commctrl.h.

See Also

List-View Controls Structures

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.