Spread 8.0 Documentation
|
|
DLL
|
Support Options
|
DLL
To create a picture cell
-
If you want to specify a picture using a handle and palette, call the SSSetTypePictureHandle function and set the parameters as follows:
- Set the hPict parameter to specify the handle to the bitmap.
- Set the hPal parameter to specify the handle to the palette to use with the bitmap.
- Set the Style parameter to VPS_CENTER if you want the picture centered in the cell.
- Set the Style parameter to VPS_STRETCH if you want the picture to fit the size of the cell.
- Set the Style parameter to VPS_STRETCH OR VPS_MAINTAINSCALE to maintain the picture's proportions when it is stretched.
- Use the Style parameter to specify the picture alignment.
-
If you do not want to specify a picture using a handle and palette, call the SSSetTypePicture function and set the parameters as follows:
- Set the PictName parameter to specify the name of the bitmap to display.
- Set the Style parameter to VPS_CENTER if you want the picture centered in the cell.
- Set the Style parameter to VPS_STRETCH if you want the picture to fit the size of the cell.
- Set the Style parameter to VPS_STRETCH OR VPS_MAINTAINSCALE to maintain the picture's proportions when it is stretched.
- Use the Style parameter to specify the picture alignment.
- Call the SSSetCellType or SSSetCellTypeRange function and set the CellType parameter to SS_TYPE_PICTURE.