Spread 8.0 Documentation
PaintControl Function
Support Options
DLL Reference > DLL Functions > PaintControl Function

Glossary Item Box

PaintControl Function


See Also    ActiveX

Applies To

fpSpread DLL control

Description

Paints the specified control into the rectangle of the device context.

Syntax

C

BOOL PaintCell(HWND hWnd, HDC hDC, LPRECT lpRect, BOOL fClientOnly);

C++

BOOL TSpread::PaintCell(HDC hDC, LPRECT lpRect, BOOL fClientOnly);

Parameters

The following parameters are available:

Parameter Description
hWnd Control window to paint
hDC Device context handle
lpRect Pointer to a RECT structure
fpClientOnly Whether to paint the client area only

Remarks

This function draws by sending the window a WM_PRINT message.

Return Value

TRUE if the function completes successfully; FALSE otherwise.

See Also

Creating Custom Cells

SSGetCellSpan, SSRemoveCellSpan, SSSetSheet functions

ActiveX Correspondence

PaintControl method

Copyright © GrapeCity, inc. All rights reserved.