Thanks Salem.
Actually, i need the round ended option to fix some broken lines of my app.
The n points line is form by n-1 segments where the joining appears broken when i increase the pen thickness. My another attempt was to draw eclipse at the line end but not successful.
I am using the MoveToEx() and LineTo() function.
Besides Polygonline, is there other methods to solve this problem? thanks.