Spread 8.0 Documentation
SS_CT_GETPREFERREDSIZE_ARGS Structure
Support Options
DLL Reference > DLL Structures > SS_CT_GETPREFERREDSIZE_ARGS Structure

Glossary Item Box

SS_CT_GETPREFERREDSIZE_ARGS Structure


See Also

Applies To

fpSpread control

Definition

typedef struct ss_ct_getpreferredsize_args
    {
    LPTSTR lpszName;
    HWND hWndSpread;
    HWND hWndRenderer;
    HDC hDC;
    short Sheet;
    SS_CELLCOORD Cell;
    SS_CT_APPEARANCE Appearance;
    RECT rect;
    LPTSTR lpszValue;
    SIZE sizePreferred;
    } SS_CT_GETPREFERREDSIZE_ARGS,
    FAR *LPSS_CT_GETPREFERREDSIZE_ARGS;

Fields

The following fields are available:

Field Description
lpszName Custom cell type name
hWndSpread HWND of Spread control
hWndRenderer HWND of renderer control
hDC Specifies the device context
Sheet Index of the sheet
Cell Coordinates for the cell
Appearance Appearance settings for the cell
rect Rectangle for the cell (client coordinates)
lpszValue Value in the cell
sizePreferred Preferred size (out)

Remarks

This structure is used in the GetPreferredSize callback function for a custom cell type. Out parameters are passed from the function back to Spread instead of from Spread to the function. Cell uses the SS_CELLCOORD structure.

See Also

SS_CT_PROCS structure

Copyright © GrapeCity, inc. All rights reserved.