CDC::GetPath
Visual Studio 2012
Retrieves the coordinates defining the endpoints of lines and the control points of curves found in the path that is selected into the device context.
int GetPath( LPPOINT lpPoints, LPBYTE lpTypes, int nCount ) const;
The device context must contain a closed path. The points of the path are returned in logical coordinates. Points are stored in the path in device coordinates, so GetPath changes the points from device coordinates to logical coordinates by using the inverse of the current transformation. The FlattenPath member function may be called before GetPath, to convert all curves in the path into line segments.
See the example for CDC::BeginPath.