SSColWidthToLogUnits Function
Applies To
fpSpread DLL control
Description
Converts column-width measurement to screen measurement.
Syntax
int SSColWidthToLogUnits(HWND hWnd, double dfColWidth);
short TSpread::ColWidthToLogUnits(double dfColWidth);
Parameters
The following parameters are available:
Parameter | Description |
hWnd | Window handle of the fpSpread control |
dfColWidth | Column width |
Remarks
This function is applied to the current sheet setting unless you first call the SSSetSheet function to specify the sheet for which you are calling this function.
The unit of measurement for the column width is based on the value of the SSSetUnitType function. The default unit of measurement is based on the system font. This function converts the column width value to pixels, the unit of measurement for the screen.
You might want to use this function to return the control's size when sizing the control's window. If your column widths are based on the system font, you might want to find the pixel width for sizing the window containing the control.
Note: The value returned by the SSColWidthToLogUnits function includes the width of the adjacent grid line. |
Return Value
Column width converted to pixels.
See Also
SSGetColWidth, SSGetColWidthInPixels, SSGetUnitType, SSLogUnitsToColWidth, SSLogUnitsToRowHeight, SSRowHeightToLogUnits, SSSetColWidth, SSSetColWidthInPixels, SSSetSheet, SSSetUnitType functions
ActiveX Correspondence
ColWidthToTwips method