I have a TreeView (without MFC) and I want to change the background color of the text. I use the following code, as showed into the MSDN. My problem is that my app never receive the CDDS_ITEMPREPAINT message when I add a node to the tree.
The CDDS_PREPAINT is well processed.
Does anybody know WHY ?
Thank you !
// Within the WM_NOTIFY process :
case IDL_C: // notify from my tree view
LPNMTVCUSTOMDRAW pd = (LPNMTVCUSTOMDRAW)ph;
pd->clrTextBk = WEYellow;