To draw any many sided figure, set up an array of POINT structures that hold the coordinates of the vertices. Then in your WM_PAINT case, use MoveTo() (could be MoveToEx() - check your Win32 API manual) with the first coordinate to start off. Then do a for loop over the remaining points with...
The only requirement would be for use with the .NET Framework which needs Managed C++. If you don't want to use the Framework, VS also lets you use MFC or write directly to the Windows API like in olden times.
Cheers.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.