Hi everybody!

Does any knows how to programm a grid control. I don't know if there is such control in the API, or I should to
define it, based in Rectangle or any other figure of the GDI.

I would like to use this grid for plotting values with the mouse or from my program, and also read the neighborhood, maybe like it were a bitmap.

Please any comment, I will be very thankful.

Joax
Posted on 2003-05-02 10:24:57 by joax
like it were a bitmap
That is probably the easiest route to take if you are already familiar with that notion.

First create a compatible DC, then a bitmap of the required size which you select into the compatible DC and use as your memory array.

When a user clicks a mouse button, you retrieve the mouse's coordinates and map it to the location of your grid. Copy changes you make in the compatible DC to the screen's DC.

Raymond
Posted on 2003-05-02 11:33:11 by Raymond
Thanks Raymond,

I will try!!.

Really I just start to work with masm32, so I not really familiar with this environment neither the API.

Joax
Posted on 2003-05-02 11:53:13 by joax
Hello joax.

I have build a Grid Control in form of Excel.
In this control you 'll can put and edit text and bitmaps.
In a few days,in this forum,I 'll put my control.

Manos.
Posted on 2003-05-05 06:31:59 by Anonymous