//设置可以编辑
CMapXLayers Lyrs = m_pMax->GetLayers();
CMapXLayer Lyr = Lyrs.Item( "Road" );
Lyr.SetSelectable(TRUE);
Lyr.SetEditable( TRUE );
//修改样式
CMapXLayers Lyrs = m_pMax->GetLayers();
CMapXLayer Lyr = Lyrs.Item( "Road" );
CMapXSelection Sel = Lyr.GetSelection();
CMapXFeature Feat = Sel.Item(1);
CMapXStyle style = Feat.GetStyle();
style.PickLine();
m_pFeat->Update();
------解决方案--------------------
layer.SetOverrideStyle(TRUE)