LineRemove example for C++ 4.0 and later
short nRet;
//Line Remove
//This examples removes vertical lines that are at least 200 pixels in length
//and no more than 5 pixels in width
//The lines can have gaps up to two pixels in length
//The LineRemove Event is used to display information about each line removed
nRet = m_LEAD1.LineRemove(LINE_USE_GAP, 200, 5, 7, 10, 2, 0, LINEREMOVE_HORIZONTAL);
void CDoccleanDlg::OnLineRemoveLeadctrl1(long nStartRow, long nStartCol, long nLength, long hRgnLine)
{
CString csOut;
csOut.Format("Line at %d,%d Length=%d", nStartRow, nStartCol, nLength);
OutputDebugString(csOut);
}