Using the Custom Draw Service

Windows CE supports the custom draw service. The custom draw service is not a common control; it is a service that makes it easy to customize the appearance of a common control. You can use it to change a common control's color or font or to partially or completely draw the control.

A common control that supports the custom draw service provides this service by sending an NM_CUSTOMDRAW notification at specific times during drawing operations. The lParam of the NM_CUSTOMDRAW notification is a reference to an NMCUSTOMDRAW structure. If the control is a list view, it uses the NMLVCUSTOMDRAW structure; if the control is a tree view, it uses the NMTVCUSTOMDRAW structure. This structure contains data that the application can use to determine how to draw the control. The following common controls can provide the custom draw service: