Implementing DynamicSlotPaintHook