怎样让列表的表头--CHeaderCtrl不能改变每个Item的宽度,就是不能拖动两个项之间的那个分隔条,最好是当鼠标在那个分隔条上时连光标都不会变成拖动的光标。

解决方案 »

  1.   

    HDN_BEGINTRACK Notification--------------------------------------------------------------------------------Notifies a header control's parent window that the user has begun dragging a divider in the control (that is, the user has pressed the left mouse button while the mouse cursor is on a divider in the header control). This notification message is sent in the form of a WM_NOTIFY message. SyntaxHDN_BEGINTRACK     phdn = (LPNMHEADER) lParam; 
    Parametersphdn
    Pointer to an NMHEADER structure that contains information about the header control and the item whose divider is to be dragged. 
    Return ValueReturns FALSE to allow tracking of the divider, or TRUE to prevent tracking. 
      

  2.   

    处理HDN_BEGINTRACK和HDN_ITEMCHANGING通知
      

  3.   

    http://www.evget.com/articles/evget_1357.html
      

  4.   

    http://community.csdn.net/Expert/FAQ/FAQ_Index.asp?id=209701`
      

  5.   

    http://www.codeguru.com/cpp/controls/listview/columns/article.php/c1065/
    http://www.codeguru.com/cpp/controls/listview/columns/article.php/c1061/