[previous] [up] [next]     [contents] [index]
Next: set-pen Up: wx:dc Previous: set-map-mode

set-optimization

Enables or disables optimized drawing mode. In optimized mode, the device context will not try to set a pen or brush property if it is known to be set already. This approach can fail if external code is using the same device context or window, for example when the window is a panel on which the windowing system draws panel items. Setting optimization off, drawing, then setting it back on again, is a trick that must occasionally be employed.



PLT