|
// 绘制部分的代码
BOOL bFlag = TRUE;
for(long k = 0;k < m_nAmount;k++)
{
lFirstX = pLCData->m_pPTData[k];
if(lFirstX == NULLVALUE) {
bFlag = TRUE;
continue;
}
lFirstY = m_pYValue[k];
if(bFlag) {
//前面有断层,以当前j点数据为起点MoveTo
pDC->MoveTo(lFirstX, lFirstY);
bFlag = FALSE;
continue;
}
pDC->LineTo(lFirstX, lFirstY);
}
//----------------------------- |
|