禁止CListCtrl 的水平滚动条

ON_WM_NCCALCSIZE()

void CMyListCtrl::OnNcCalcSize(BOOL bCalcValidRects, NCCALCSIZE_PARAMS FAR* lpncsp)
{
ModifyStyle(WS_HSCROLL | WS_VSCROLL,0,0);
CListCtrl::OnNcCalcSize(bCalcValidRects, lpncsp);
}

你可能感兴趣的:(禁止CListCtrl 的水平滚动条)