解决方法
Refresh – 在屏幕上重绘控制。
Call Refresh method to repaint the
control immediately. Refresh calls the
Repaint method. Use the Refresh and
Repaint methods interchangeably.
Repaint – 强制控件在屏幕上重绘其图像。
Call Repaint to force the control to
repaint its image immediately. If the
ControlStyle property includes
csOpaque,the control paints itself
directly. Otherwise,the Repaint
method calls the Invalidate method and
then the Update method so that any
visible portions of controls beneath
the control will be repainted as well.
Update – 立即处理任何待处理的绘制消息。
Call Update to force the control to be
repainted before any more,possibly
time-consuming,processing takes
place. Use Update to provide immediate
Feedback to the user that cannot wait
for the Windows paint message to
arrive.Update does not invalidate the control,but simply forces a repaint of any regions that have already been invalidated. Call Repaint instead to invalidate the control as well.