THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 11/03/2005 at 06:51, xxxxxxxx wrote:
Cinema 4D Version: 9.1
Language(s) : C++ ;
i have a Non-Modal Dialog with a UserArea which needs to be redrawn after a rather lengthy computation. After the UserArea/Dialog is initialized, resized, interacted with by the user, etc... this computation starts and takes several second. The computation runns in a seperate thread, so it doesn't block the gui.
What is the prefered way of redrawing the UserArea, to show the results of the computation, once it is done ?
Polling with the timer message? Using a background handler? Calling the redraw function from the thread before it terminates ?