Drawing Lines on a Grid

Christian Delfosse escribió:

Hello,

I would like to draw oblique lines over a grid, much in the way that Excel shows precedents.

I am aware of the GetGridWindow() function, unfortunately, its OnPaint() function is private, so that
I cannot do sthg like

What you can do is create a custom data type and then create its cell renderer object. Inside your table you would store pointers to your possibly complex data and the cell renderer would be able to draw them according to your own logic.

···

--
Rastertech España S.A.
  Grzegorz Adam Hankiewicz
/Jefe de Producto TeraVial/

C/ Perfumería 21. Nave I. Polígono industrial La Mina
28770 Colmenar Viejo. Madrid (España)
Tel. +34 918 467 390 (Ext.17) *·* Fax +34 918 457 889
ghankiewicz@rastertech.es *·* www.rastertech.es <http://www.rastertech.es/&gt;