Declaration:
void SetUpdateMode(unsigned long handle, int update);
Description
Sets up the window update mode. By default, all graphical output is immediately displayed in the window. The SetUpdateMode function sets up a different update mode, when graphical output is cached in the memory and drawing is carried out by calling the UpdateWindow function. Using this, the drawing is performed faster. The update parameter can assume two values:
UM_IMMEDIATE - immediate drawing;
UM_ONREQUEST - drawing by calling the UpdateWindow function.
Example
ulong handle = OpenUserWindow("Test");
MoveTo(handle, 20, 20);
LineTo(handle, 40, 40);
LineTo(handle, 45, 45);
UpdateWindow(handle);
|