// 创建新的图元另外一种方法,当采用mapx 的tab 表作为数据源时。 CMapXFeature newFtr; newFtr.CreateDispatch(newFtr.GetClsid()); newFtr.Attach(m_pCtrlMapx -> GetDispatch()); newFtr.GetPoint().Set(m_pMapParm -> m_currentX,m_pMapParm -> m_currentY); newFtr.SetStyle(m_pMapParm -> pointStyle); newFtr = layer.AddFeature(newFtr,rvs);