[求助]
(2005-04-01 10:34:31) 陽光男孩 下面有個問題,有時間幫忙看看吧!! 先謝謝你了!!! 如果把下面的 sizeTotal.cx的值用變量代替行嗎? 例如: sizeTotal.cy =950*m_MapLayerCount void CMapLayerControl::OnInitialUpdate() { CScrollView::OnInitialUpdate();
CSize sizeTotal;
sizeTotal.cx=0; CGisView *pView=GetGisViewPtr(); CMap1 *Map=&(pView->m_map); CMoLayers Layers=Map->m_map.GetLayers();
CGisView * pView =GetGisViewPtr(); m_MapLayerCount= pView->m_map.GetLayers().GetCount();
sizeTotal.cy =950*m_MapLayerCount SetScrollSizes(MM_TEXT, sizeTotal);
}