MTblCalcRowHeight
nHeight = MTblCalcRowHeight( hWndTbl, nLinesPerRow )
Calculates the row height in pixels for a given number of lines per row .
Parameters
hWndTbl
Window Handle: Handle of the table
nLinesPerRow
Number: Number of lines per row to use for calculation. Min. value = 1.
Return
Number: Calculated height in pixels or negative if an error occurs
Example
In this example the result of MTblCalcRowHeight is used to limit the number of lines per row to 3:
On MTM_QueryMaxRowHeight
Return MTblCalcRowHeight( hWndTbl, 3 )
See also
MTM_QueryMaxRowHeight
Automatic row sizing
Created with the Personal Edition of HelpNDoc: Easy EBook and documentation generator