Hi there,

I'm currently writing an application which displays all the main roads of my country. These roads are displayed as a lot of small pieces of polylines. The coordinates of these polylines are in a file and I've succeeded in displaying them.

Now I was wondering, does visual c++ have some sort of object type which looks like a line and it can be detected if that object has been clicked?
The reason I'm asking this is because now, if I click on a line, I have to discover the coordinates where I clicked, and go over all the lines (all 33000 of them) and see if that line is the one which has been clicked.

It's a long shot, but still... maybe someone has a good idea....

Thnx.

IdunnO