nLockCounter = MTblLockPaint( hWndTbl )

Locks table painting.

Parameters
hWndTbl
Window Handle: Handle of the table

Return
Number: New value of the lock counter or TBL_Error if an error occured

Example
In this example the painting is locked before and unlocked after inserting rows:

Call MTblLockPaint( hWndTbl )
Set n = 0
Set nRows = 1000
While n < nRows
 Call SalTblInsertRow( hWndTbl, TBL_MaxRow )
 Set n = n + 1
Call MTblUnlockPaint( hWndTbl )
Call SalInvalidateWindow( hWndTbl ) ! Force repaint

Remarks
This function increases an tables internal lock counter. If the counter is > 0, M!Table locks painting.
Paintings done by XSal are NOT locked.

See also
MTblUnlockPaint

Created with the Personal Edition of HelpNDoc: Free Qt Help documentation generator