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

Glossary Item Box

SS_DRAWITEMSTRUCT Structure


Applies To

fpSpread control

Definition

typedef struct ss_drawitemstruct
    {
    WORD CtlID;
    SS_COORD Col;
    SS_COORD Row;
    HWND hWnd;
    HDC hDC;
    RECT Rect;
    long lStyle;
    LPCTSTR lpData;
    } SS_DRAWITEMSTRUCT, FAR *LPSS_DRAWITEMSTRUCT;

Fields

The following fields are available:

Field Description
CtlID fpSpread control ID
Col Column number of cell to draw
Row Row number of cell to draw
hWnd Window handle of fpSpread control
hDC Spread device context to use
Rect Rectangle of cell
(All drawing must be done within this rectangle.)
lStyle User-defined style
(The value of the lStyle parameter of the SSSetTypeOwnerDraw function.)
lpData Cell data

Remarks

This structure is sent through the SSM_DRAWITEM message to the owner of the fpSpread control each time an owner-drawn cell is displayed. Use the SSSetTypeOwnerDraw function to specify an owner-drawn cell.

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.