SSGetUserResizeCol, SSSetUserResizeCol Functions
Applies To
fpSpread DLL control
Description
Set or return the column resize option for the specified column.
Syntax
short SSGetUserResizeCol(HWND hWnd, SS_COORD Col);
short SSSetUserResizeCol(HWND hWnd, SS_COORD Col, short dOption);
short TSpread::GetUserResizeCol(SS_COORD Col);
short TSpread::SetUserResizeCol(SS_COORD Col, short dOption);
Parameters
The SSGetUserResizeCol function has the following parameters:
Parameter | Description |
hWnd | Window handle of the fpSpread control |
Col | Column number for which to return the option (Value can be SS_ALLCOLS.) |
The SSSetUserResizeCol function has the following parameters:
Parameter | Description | |
---|---|---|
hWnd | Window handle of the fpSpread control | |
Col | Column number to which the option applies (Value can be SS_ALLCOLS.) |
|
dOption | Resize option for the column Use one of the following values: |
|
Constant | Description | |
SS_RESIZE_DEFAULT | Uses resize option applied to all columns using the SSSetUserResize function (This is the default option for each column.) |
|
SS_RESIZE_ON | User can resize column (regardless of global settings) | |
SS_RESIZE_OFF | User cannot resize column (regardless of global settings) |
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.
Use the SSSetUserResizeCol function to control whether the user can resize individual columns, regardless of global resize settings.
Return Value
Previous column resize option for the specified column (refer to the dOption parameter for an explanation of the available return values).
See Also
Preventing Resizing of Columns and Rows with the Mouse
SSGetUserResize, SSGetUserResizeRow, SSSetSheet, SSSetUserResize, SSSetUserResizeRow functions
ActiveX Correspondence
UserResizeCol property