AnnSetPolyFillMode example for Visual C++ 4.0 and later
short nNodes;
short
nFillMode;
long
nAlpha;
BOOL bShow;
m_Lead1.AnnSetFillPattern (hPlgn, (m_Lead1.AnnGetFillPattern (hPlgn) + 1) % 7, FALSE);
m_Lead1.AnnGetFillMode (hPlgn,
&nFillMode, &nAlpha);
m_Lead1.AnnSetFillMode (hPlgn,
(nFillMode + 1) % 3, nAlpha, 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,
(float)(int(m_Lead1.AnnGetLineWidth (hPlgn))
% 4 + 1), FALSE);
nNodes = m_Lead1.AnnGetNodes (hPlgn, &bShow);
m_Lead1.AnnSetNodes (hPlgn, !bShow,
(short)((nNodes + 1) % m_Lead1.AnnGetPointCount (hPlgn)),
FALSE);