Spread 8.0 Documentation
DLL
Support Options

Glossary Item Box

DLL


To create a picture cell

  1. If you want to specify a picture using a handle and palette, call the SSSetTypePictureHandle function and set the parameters as follows:
    1. Set the hPict parameter to specify the handle to the bitmap.
    2. Set the hPal parameter to specify the handle to the palette to use with the bitmap.
    3. Set the Style parameter to VPS_CENTER if you want the picture centered in the cell.
    4. Set the Style parameter to VPS_STRETCH if you want the picture to fit the size of the cell.
    5. Set the Style parameter to VPS_STRETCH OR VPS_MAINTAINSCALE to maintain the picture's proportions when it is stretched.
    6. Use the Style parameter to specify the picture alignment.
  2. If you do not want to specify a picture using a handle and palette, call the SSSetTypePicture function and set the parameters as follows:
    1. Set the PictName parameter to specify the name of the bitmap to display.
    2. Set the Style parameter to VPS_CENTER if you want the picture centered in the cell.
    3. Set the Style parameter to VPS_STRETCH if you want the picture to fit the size of the cell.
    4. Set the Style parameter to VPS_STRETCH OR VPS_MAINTAINSCALE to maintain the picture's proportions when it is stretched.
    5. Use the Style parameter to specify the picture alignment.
  3. Call the SSSetCellType or SSSetCellTypeRange function and set the CellType parameter to SS_TYPE_PICTURE.
Copyright © GrapeCity, inc. All rights reserved.