OnAfterItemPaint benutzt man eigentlich recht selten.
Anbei mal die Reihenfolge der Events (Auszug aus der Hilfe des VST):
Zitat von
Zitat von PaintEvents::
Usually the following paint stages are executed during a paint cycle:
- before paint (OnBeforePaint)
- before item paint (OnBeforeItemPaint)
- before item erase (OnBeforeItemErase)
- after item erase (OnAfterItemErase)
- before cell draw (OnBeforeCellPaint)
- on paint text (string trees only, OnPaintText)
- after cell draw (OnAfterCellPaint)
- after item paint (OnAfterItemPaint)
- after paint (OnAfterPaint)