Hi,

Could anybody please explain how the selection mechanism works?

ie. I have drawn a straight line on a dialog window using the MoveTo() and LineTo() functions.Now, if I click on a point on that line, i want the line to be selected. I have seen in applications like MS Word that when you click a line object it gets selected;two tiny squares appear on either end of the line making it appear selected.How can we select a line drawn on a dialog window in VC++ so that we can rotate and cut the line into a number of segments etc?