AnnSetPolyFillMode example for Visual C++ 4.0 and later
short nNodes;
BOOL bShow;
m_Lead1.AnnSetFillPattern (hPlgn, (m_Lead1.AnnGetFillPattern (hPlgn) + 1) % 7, FALSE);
m_Lead1.AnnSetFillMode (hPlgn, (m_Lead1.AnnGetFillMode (hPlgn) + 1) % 3, FALSE);
m_Lead1.AnnSetPolyFillMode (hPlgn, 1 - m_Lead1.AnnGetPolyFillMode (hPlgn), FALSE);
m_Lead1.AnnSetLineStyle (hPlgn, (m_Lead1.AnnGetLineStyle (hPlgn) + 1) % 6, FALSE);
m_Lead1.AnnSetLineWidth (hPlgn, int(m_Lead1.AnnGetLineWidth (hPlgn)) % 4 + 1, FALSE);
nNodes = m_Lead1.AnnGetNodes (hPlgn, &bShow);
m_Lead1.AnnSetNodes (hPlgn, !bShow, (nNodes + 1) % m_Lead1.AnnGetPointCount (hPlgn), FALSE);