滚动条没有响应,是哪里出错了吗
void CPaint::OnHScroll(UINT nSBCode, UINT nPos, CScrollBar* pScrollBar){
// TODO: 在此添加消息处理程序代码和/或调用默认值;
//int iPos = GetScrollPos(SB_VERT);
switch (nSBCode)
{
case SB_TOP:
tagScrollInfo.nPos = tagScrollInfo.nMin;
break;
case SB_BOTTOM:
tagScrollInfo.nPos = tagScrollInfo.nMax;
break;
case SB_LINELEFT:
tagScrollInfo.nPos -= 1;
break;
case SB_LINERIGHT:
tagScrollInfo.nPos += 1;
case SB_THUMBPOSITION:
tagScrollInfo.nPos = tagScrollInfo.nTrackPos;
break;
default:
break;
}
SetScrollInfo(SB_VERT, &tagScrollInfo, true);
RedrawWindow();
CWnd::OnHScroll(nSBCode, nPos, pScrollBar);
}