//g_bAutoScrollFlag = false时暂停页面,为true时自动滚动
//强制控件重画新增列
m_ListCtrl.Update(g_ulListLogInfoLineNum);
//如果为自动滚动
if(g_bAutoScrollFlag)
{
CRect rectItem(0);
//获取一行信息的矩形范围 m_ListCtrl.GetItemRect(g_ulListLogInfoLineNum, &rectItem, LVIR_BOUNDS);
//列表控件自动滚动 m_ListCtrl.Scroll(CSize(0, rectItem.Height()));
}
g_ulListLogInfoLineNum++;
//强制控件重画新增列
m_ListCtrl.Update(g_ulListLogInfoLineNum);
//如果为自动滚动
if(g_bAutoScrollFlag)
{
CRect rectItem(0);
//获取一行信息的矩形范围 m_ListCtrl.GetItemRect(g_ulListLogInfoLineNum, &rectItem, LVIR_BOUNDS);
//列表控件自动滚动 m_ListCtrl.Scroll(CSize(0, rectItem.Height()));
}
g_ulListLogInfoLineNum++;