Using Win32 functions in Visual FoxPro Image Gallery
Painting and Drawing
..msdn
DrawAnimatedRects
DrawCaption
DrawEdge
DrawFrameControl
GdiFlush
GdiGetBatchLimit
GdiSetBatchLimit
GetBkMode
GetBoundsRect
GetWindowDC
GetWindowRgnBox
LockWindowUpdate
PaintDesktop
SetBkColor
SetBkMode
SetWindowRgn
WindowFromDC
Code examples:
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:
      Spanish    Portuguese    German    French    Italian  
    FreeTranslation.com offers instant, free translations of text or web pages.
    Created: 2008-01-04 13:28:54
    Modified: 2008-01-04 13:56:15
    Visited in last 7 days: 7
    User Contributed Notes:
    There are no notes on this subject.


    Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

    Privacy policy
    Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
    Last Topics Visited (54.82.112.193)
    15 sec.Function: 'DrawIcon'
    33 sec.Function: 'StrCpy'
    48 sec.Function: 'GetIconInfo'
    1.1 min.Function: 'MAPISendDocuments'
    Function group: 'Simple MAPI'
    1.33 min.
    Function group: 'Data Decompression Library'
    1.62 min.Function: 'mixerOpen'
    1.88 min.Function: 'WNetCancelConnection2'
    2.17 min.Function: 'GdipGetImageDecodersSize'
    2.43 min.Function: 'CreateEllipticRgn'
    2.72 min.Function: 'mmioClose'
    Google
    Advertise here!