NM_CUSTOMDRAW能解决,它是发给父窗口的. NM_CUSTOMDRAW
lpNMCustomDraw = (LPNMTVCUSTOMDRAW) lParam;
Sent by a tree view control to notify its parent window about drawing operations. This notification is sent in the form of a WM_NOTIFY message.
typedef struct tagNMCUSTOMDRAWINFO {
NMHDR hdr;
DWORD dwDrawStage;
HDC hdc;
RECT rc;
DWORD dwItemSpec;
UINT uItemState;
LPARAM lItemlParam;
} NMCUSTOMDRAW, FAR * LPNMCUSTOMDRAW;
处理这个消息,使用hdc重绘即可