NM_CUSTOMDRAW (tooltip) notification code
Sent by a tooltip control to notify its parent window about drawing operations. This notification code is sent in the form of a WM_NOTIFY message.
NM_CUSTOMDRAW
lpNMCustomDraw = (LPNMTTCUSTOMDRAW) lParam;
Parameters
-
lParam
-
Pointer to an NMTTCUSTOMDRAW structure that contains information about the drawing operation.
Return value
The value that your application can return depends on the current drawing stage. The dwDrawStage member of the associated NMCUSTOMDRAW structure holds a value that specifies the drawing stage. You must return one of the following values.
Return code | Description |
---|---|
|
The control will draw itself. It will not send any additional NM_CUSTOMDRAW notification codes for this paint cycle. This occurs when dwDrawStage equals CDDS_PREPAINT. |
|
The control will notify the parent of any item-related drawing operations. It will send NM_CUSTOMDRAW notification codes before and after drawing items. This occurs when dwDrawStage equals CDDS_PREPAINT. |
|
The control will notify the parent after erasing an item. This occurs when dwDrawStage equals CDDS_PREPAINT. |
|
The control will notify the parent after painting an item. This occurs when dwDrawStage equals CDDS_PREPAINT. |
|
Version 4.71. The control will notify the parent when a list-view subitem is being drawn. This occurs when dwDrawStage equals CDDS_PREPAINT. |
|
Your application specified a new font for the item. The control will use the new font. For more information about changing fonts, see Changing fonts and colors. This occurs when dwDrawStage equals CDDS_ITEMPREPAINT. |
|
Your application drew the item manually. The control will not draw the item. This occurs when dwDrawStage equals CDDS_ITEMPREPAINT. |
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2003 [desktop apps only] |
Header |
|