DLL
To create and customize a percent cell
-
If you want to display a leading zero in values between 1.0 and –1.0, to display spin buttons, to specify the format character used to display the decimal character, or to specify the negative style, call the SSSetTypePercentEx function.
If you want to use the regional default character used to display the decimal character, call the SSSetTypePercent function. Set the parameters for the functions as follows:
- Set the Max parameter to specify the maximum value for the cell
- Set the Min parameter to specify the minimum value for the cell
-
Set the Right parameter to specify the number of digits allowed to the right of the decimal symbol
Note: The total number of digits to the left and right of the decimal symbol cannot total more than 14. - Set the Style parameter to specify:
- Call the SSSetCellType or SSSetCellTypeRange function and set the CellType parameter to SS_TYPE_PERCENT.