C++ (Qt)OldPainter painter(window);Rect R = GetControlRect(comboBox);for (int i = 0; i < 100; ++i) { DoSomething(i); painter.FillRect(&R, i);}Inval(&R);