PaintControl Method
Applies To
fpSpread control
Description
Paints a control into the rectangle in the device context.
Syntax
BOOL CSpreadSheet::PaintControl(const VARIANT& Ctrl, long hDC, long Left, long Top, long Right,long BottomBOOL ClientOnly);
fpSpread1.PaintControl(ByVal Ctrl As Ctrl, ByVal hdc As OLE_HANDLE, ByVal Left As OLE_XPOS_PIXELS, ByVal Top As OLE_YPOS_PIXELS,ByVal Right As OLE_XPOS_PIXELS, ByVal Bottom AsOLE_YPOS_PIXELS, ByVal Client As Boolean) As Boolean
Parameters
The following parameters are available:
Parameter | Description |
---|---|
Ctrl | Name of the control |
hDC | Handle of the control |
Left | Left side of the rectangle area |
Top | Top side of the rectangle area |
Right | Right side of the rectangle area |
Bottom | Bottom side of the rectangle area |
Client | Whether to paint the client area |
Remarks
This method draws the specified control in the rectangle area of the device context by sending the window a WM_PRINT message. This method can be called from the CTPaintCell event.
Return Type
True if the control is painted successfully; false otherwise.
See Also
GetCustomRenderer, GetCustomEditor methods
DLL Correspondence
PaintControl function