DLL
To create and customize a number 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 characters used to display the thousands separator and the decimal character, or to specify the negative style, call the SSSetTypeNumberEx function.
If you want to display the separator character and use the regional default characters used to display the thousands separator and the decimal character, call the SSSetTypeNumber 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 ShowSep parameter to TRUE to display the separator character used to separate groups of thousands digits (for example, the comma in "1,000").
- Set the Style parameter to specify:
- Call the SSSetCellType or SSSetCellTypeRange function and set the CellType parameter to SS_TYPE_NUMBER.