我用CPtrList存储一组图元对象,然后逐个将其画出
POSITION pos=pMyView->m_PlaceList.FindIndex(index);
pSelected=(CDrawElement*)(pMyView->m_PlaceList.GetAt(pos));
当index=2,3,4时都正常,可是当index=1时为什么会出现断言错误呢?
POSITION pos=pMyView->m_PlaceList.FindIndex(index);
pSelected=(CDrawElement*)(pMyView->m_PlaceList.GetAt(pos));
当index=2,3,4时都正常,可是当index=1时为什么会出现断言错误呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货