DECLAREINTEGER GdiSetBatchLimit IN gdi32;
[in] Specifies the batch limit to be set. A value of 0 sets the default limit. A value of 1 disables batching.
If the function succeeds, the return value is the previous batch limit ( > 0).
* The workaround for ComboBox issues for VFP9 on Vista* as blogged by Calvin Hsia
Only GDI drawing functions that return Boolean values can be accumulated in the current batch; calls to any other GDI functions immediately flush the current batch. Exceeding the batch limit or calling the GdiFlush function also flushes the current batch.
The batch limit is maintained for each thread separately. In order to completely disable batching, call GdiSetBatchLimit(1) during the initialization of each thread.
When started the Visual FoxPro 09.00.0000.5815 for Windows sets the batch limit to 20.