Purpose |
Schedule a designated control to be redrawn. |
Syntax |
CONTROL REDRAW hDlg, id& |
Remarks |
CONTROL REDRAW invalidates the target control and schedules a redraw event to occur. hDlg refers to the dialog that owns the control. id& is the unique control
identifier
as assigned to the control with a
|
Restrictions |
Redrawing of individual controls is considered a low priority event, and a control redraw may not happen instantly if there are pending messages in the message queue. That is, pending messages in the message queue may need to be processed before the scheduled redraw event occurs. It is not advisable to use CONTROL REDRAW or DIALOG REDRAW within the %WM_PAINT and associated message handling code, or an infinite redraw loop could occur. |
See also |
Dynamic Dialog Tools, CONTROL SET COLOR, DIALOG SET COLOR, DIALOG REDRAW |
Example |
CONTROL REDRAW hDlg, %ID_LABEL1 |