 |
GdiSetBatchLimit ..msdn Add comment W32 Constants Translate this page |
 |
 |
|
Sets the maximum number of function calls that can be accumulated in the calling thread`s current batch. The system flushes the current batch whenever this limit is exceeded. |
 |
 |
| Code examples: |
 |
|
|
 |
 |
| Declaration: |
 |
 |
DWORD GdiSetBatchLimit(
DWORD dwLimit // batch limit
);
|
 |
 |
 |
| FoxPro declaration: |
 |
 |
DECLARE INTEGER GdiSetBatchLimit IN gdi32;
LONG dwLimit
|
 |
 |
 |
| Parameters: |
 |
dwLimit
[in] Specifies the batch limit to be set. A value of 0 sets the default limit. A value of 1 disables batching.
|
 |
 |
| Return value: |
 |
| If the function succeeds, the return value is the previous batch limit ( > 0). |
 |
 |
| Usage: |
 |
* The workaround for ComboBox issues for VFP9 on Vista
* as blogged by Calvin Hsia
GdiSetBatchLimit(1)
|
 |
 |
| My comment: |
 |
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.
See also:
Vista Aero Issues on FoxPro Wiki.
Visual FoxPro and Vista RTM as blogged by Rick Strahl |
 |
 |
| Word Index links for the GdiSetBatchLimit : |
 |
|
|
 |
 |
| Translate this page: |
 |
|
 |
 |
| • |
 |
| Created: | 2008-01-04 13:28:54 | | Modified: | 2008-01-04 13:56:15 | Visited in last 7 days: 17 |