如何让LISTVIEW在单击滚动条的右面的三角时向右滚动一列?而不是黙认的移动一点点?

解决方案 »

  1.   

    SetScrollPos?只不具体位置需要你根据列的信息计算了。
      

  2.   

    可是在OnHScroll()参数中传过来的pScrollBar是空的!!用GET方法自己取也是空的!试着用SendMessage,不知道怎么写消息才对.
      

  3.   

    virtual CScrollBar* GetScrollBarCtrl(
    int nBar )
    const; 
    Parameters
    nBar 
    Specifies the type of scroll bar. The parameter can take one of the following values: 
    SB_HORZ   Retrieves the position of the horizontal scroll bar. 
    SB_VERT   Retrieves the position of the vertical scroll bar.
      

  4.   

    用GetScrollBarCtrl取到的是空的!