NM_CUSTOMDRAWNM_CUSTOMDRAW*
*Contents  *Index  *Topic Contents
*Previous Topic: Notification Messages
*Next Topic: Custom Draw Structures

NM_CUSTOMDRAW


NM_CUSTOMDRAW
#ifdef LIST_VIEW_CUSTOM_DRAW
    lpNMCustomDraw = (LPNMLVCUSTOMDRAW) lParam;
#elif TOOL_TIPS_CUSTOM_DRAW
    lpNMCustomDraw = (LPNMTTCUSTOMDRAW) lParam;
#elif TREE_VIEW_CUSTOM_DRAW
    lpNMCustomDraw = (LPNMTVCUSTOMDRAW) lParam;
#elif TOOL_BAR_CUSTOM_DRAW
    lpNMCustomDraw = (LPNMTBCUSTOMDRAW) lParam;
#else
    lpNMCustomDraw = (LPNMCUSTOMDRAW) lParam;
#endif

Sent by some common controls to notify their parent windows about drawing operations. This notification is sent in the form of a WM_NOTIFY message.

Currently, the following controls support custom draw functionality: header, list view, rebar, toolbar, tooltip, trackbar, and tree view.

lpNMCustomDraw
Address of a custom draw-related structure that contains information about the drawing operation. List view controls use the NMLVCUSTOMDRAW structure, tooltip controls use the NMTTCUSTOMDRAW structure, tree view controls use the NMTVCUSTOMDRAW structure, toolbar controls use the NMTBCUSTOMDRAW structure, and all other supported controls use the NMCUSTOMDRAW structure.

Version 4.70

See also Using Custom Draw


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.