Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logical problem

Status
Not open for further replies.

bubak

Programmer
Jun 25, 2001
208
SK
I have a grid, it is for all the minutes in a day. ( when I'm setting just one exactly minute, i'm "walking" with an rectangle in it (dc->rectangle), but there in the grid are two types of lines and so, when I walk by the 2px line with mi 1px_bordered rectangle, it get's lost of course ( There are 2 possibillities in my point of view
1) draw the rect smaller 1px in eatch side
2) redraw the line again and again (or a part of it)

Isn't there some better solution - sth like transparent layers for painting, some solution using XOR function, or whatever. thanx for now.
bubak
 
just do it and tell the results there in the forum. Maybe your experience will be very helpfull. John Fill
1c.bmp


ivfmd@mail.md
 
I've used the solution, that, when I draw a rect near the bold lnie, I redraw back the part of it, that get's redrawn with the rect. I thought, that it'd be slow, but it's ok. When I'll have a little bit time, I'll redo it with XOR drawing, but now I don't know , how to do it in VC++. Anyway, the problem is solved, the day is saved ;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top