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

Glossary Item Box

SS_CT_CREATERENDERERCONTROL_ARGS Structure


See Also

Applies To

fpSpread control

Definition

typedef struct ss_ct_createrenderercontrol_args
    {
    LPTSTR lpszName;
    HWND hWndSpread;
    LONG lStyle;
    INT CtrlId;
    HWND hWndRenderer;
    } SS_CT_CREATERENDERERCONTROL_ARGS,
    FAR *LPSS_CT_CREATERENDERERCONTROL_ARGS;

Fields

The following fields are available:

Field Description
lpszName Custom cell type name
hWndSpread HWND of Spread control
lStyle Style for the cell
CtrlId Value to use for control id
hWndRenderer HWND of renderer control (out)

Remarks

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

This structure allows you to create a separate instance of the control to use in rendering the custom cell. This is needed only if the cell type will be used in more than one cell and only if the SS_CT_PAINTCELL_ARGS structure is not handling the painting of the cell when it is not being edited.

The CtrlId is used when using CreatedWindow to create the renderer control as a child window of the Spread control. The id should be passed into the hMenu parameter for CreateWindow or CreateWindowEx and should be a unique value for each child window.

See Also

SS_CT_PROCS structure

Copyright © GrapeCity, inc. All rights reserved.