Skip to content

DoUpdateWindow - cWinControl

Updates a window if it needs repainting

Type: Procedure

Syntax

Procedure DoUpdateWindow

Call Example

Send DoUpdateWindow

Description

Send the DoUpdateWindow message when you want Windows to display the control immediately to reflect any visual changes made since the last time the controls was displayed.

Col 1 Col 2
Note: For performance reasons, Windows only updates controls when it is idle (that is, not processing user-messages). However, there are times--during tight loops, for example--when you would want the control to display the changes that you are making. In these circumstances, send the DoUpdateWindow message and Windows will repaint the control immediately.