I have a dialog based application. I am using SetWindowText to output some message in my CEdit control. I have several messages I want to show in one function. So let say I press the OK button, the CEdit control will show "Starting", "Downloading", "Completed" in sequence. However it seems that the CEdit control will only update once at the end of the function. So only the message "Completed" is shown at the end. What code should I add in to force windows to update my CEdit control several times in a function? Thanks