Spread 8.0 Documentation
CTPaintCell Event
Support Options
ActiveX Reference > ActiveX Events > CTPaintCell Event

Glossary Item Box

CTPaintCell Event


See Also

Applies To

fpSpread control

Description

Occurs when the custom cell should paint the contents of the cell (when it is not in edit mode).

Syntax

C++

afx_msg void OnCTPaintCellfpSpread(LPCTSTR Name, const VARIANT FAR& RendererControl, short Sheet, long Col, long Row, const VARIANT FAR& Value, long hDC, long CellLeft,long CellTop,long CellRight,long CellBottom,LPUNKNOWN Appearance, BOOL IsSelected, BOOL IsLocked, BOOL FAR* Handled);

Visual Basic

Sub fpSpread_CTPaintCell(ByVal Name As String, ByVal RendererControl As Variant, ByVal Sheet As Integer,ByVal Col As Long, ByVal Row As Long, ByVal Value AsVariant, ByVal hDC As stdole.OLE_HANDLE, ByValCellLeft As Single,ByVal CellTop As Single, ByVal CellRight As Single, ByVal CellBottom As Single, ByValAppearance As FPSpreadADO.CTAppearance, ByVal IsSelected As Boolean, ByVal IsLocked As Boolean,Handled As Boolean)

Parameters

The following parameters are available:

Parameter Description
Name Name of the custom cell type
RendererControl Renderer control to use for editing the cell
Sheet Sheet number containing the custom cell
Col Column number of the cell containing the custom cell
Row Row number of the cell containing the custom cell
Value Value in the cell
hDC Device context handle of the Spread control
CellLeft Left coordinate for the cell
CellTop Top coordinate for the cell
CellRight Right coordinate for the cell
CellBottom Bottom coordinate for the cell
Appearance Appearance settings for the cell (use the CTAppearance properties)
IsSelected True if the cell is selected
IsLocked True if the cell is locked
Handled True to cancel the default processing

Remarks

If Handled is not set to true and RendererControl is non-empty, the Spread control will attempt to draw the custom cell.

See Also

SheetSendingEvent property

SS_CT_PAINTCELL_ARGS structure

CTCancelEditing events

Copyright © GrapeCity, inc. All rights reserved.