Occurs at discrete stages during the painting of the tree view control.
Write an OnAdvancedCustomDraw event handler to paint an owner-drawn tree view. Use the Canvas property as a drawing surface when painting the image of the tree view.
To paint individual items, use the OnAdvancedCustomDrawItem or OnCustomDrawItem event instead.
OnAdvancedCustomDraw occurs at several stages during the paint process, not just immediately prior to the default rendering. If you only need to use the cdPrePaint stage, it is more efficient to use the OnCustomDraw event.