How to use CDC::Polygon

How do I create a pointer to an array of points in a form that CDC::Polygon would like ?
The on-line help tells me to pass a pointer to an array of CPoint objects or POINT structs, I created a pointer to an array (CPoint *pointarray[4];) but the compiler just laughs at me.

Any help greatly appreciated.

David Murphy
davidmurphyAsked:
Who is Participating?
 
psdavisConnect With a Mentor Commented:
CPoint ptArray[ 4 ];
ptArray[0].x = ...

dc.Polygon( &ptArray, 4 );

Phillip
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.