想给GridCtrl添加滚动条,设置如下:
m_pGridCtrl.SetRowCount(nRow);       
m_pGridCtrl.SetFixedRowCount(1);
m_pGridCtrl.SetColumnCount(nColumn);
m_pGridCtrl.SetFixedColumnCount(1);
m_pGridCtrl.EnableScrollBar(SB_BOTH, ESB_ENABLE_BOTH);在OnInitDialog中最后写下:
m_pGridCtrl.ResetScroll();
其中ResetScroll调用了ResetScrollBars(),可是为什么没有显示滚动条呢?