Spread 8.0 Documentation
SSGetColWidthInPixels, SSSetColWidthInPixels Functions
Support Options
DLL Reference > DLL Functions > SSGetColWidthInPixels, SSSetColWidthInPixels Functions

Glossary Item Box

SSGetColWidthInPixels, SSSetColWidthInPixels Functions


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Set or return the width of the specified column in pixels.

Syntax

C

BOOL SSGetColWidthInPixels(HWND hWnd, SS_COORD Col, LPINT lpdWidth);

BOOL SSSetColWidthInPixels(HWND hWnd, SS_COORD Col, int dWidth);

C++

BOOL TSpread::GetColWidthInPixels(SS_COORD Col, LPINT lpdWidthPixels);

BOOL TSpread::SetColWidthInPixels(SS_COORD Col, int dWidth);

Parameters

The SSGetColWidthInPixels function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpread control
Col Column number
lpdWidth Pointer to variable that receives column width in pixels

The SSSetColWidthInPixels function has the following parameters:

Parameter Description
hWnd Window handle of the fpSpread control
Col Column number
dWidth Column width in pixels

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. These functions let you set or return the column width using pixels as the unit of measurement.

Return Value

TRUE if the function completes successfully; FALSE otherwise.

See Also

Resizing a Cell to Fit the Widest Data
Resizing Columns and Rows to Fit Text
Setting the Width of Columns

SSColWidthToLogUnits, SSGetColWidth, SSGetRowHeight, SSGetRowHeightInPixels, SSLogUnitsToColWidth, SSSetColWidth, SSSetRowHeight, SSSetRowHeightInPixels, SSSetSheet functions

ActiveX Correspondence

ColWidth property

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.