如题。请多指教。

解决方案 »

  1.   

    HDN_ITEMCHANGED
    Notifies a header control's parent window that the attributes of a header item have changed. This notification message is sent in the form of a WM_NOTIFY message. 
      

  2.   

    HDN_TRACK
    Notifies a header control's parent window that the user is dragging a divider in the header control. This notification message is sent in the form of a WM_NOTIFY message. 
      

  3.   

    是在List控件里的Head控件中响应的,如果要在这个事件中做操作的话,你就应该把这个CListCtrl的Head用你自己写的从CHeaderCtrl继承的类来实现,在这个类里可以去响应你要是事件
      

  4.   

    应该是HDN_TRACK,但我没有响应
    但HDN_ENDTRACK可以响应
    如果这还可以满足你需要的话
      

  5.   

    lz这篇文章应该有用
    http://thomasfreudenberg.com/blog/archive/2004/03/14/HDN-TRACK.aspx
      

  6.   

    试了一下
    将ON_NOTIFY(HDN_TRACK, OntrackList)
    改为
    ON_NOTIFY(HDN_ITEMCHANGED , 0, OnTrackList)
    就可以了