CListCtrl有一个"No Scroll"属性,可以让滚动条不显示,好像是横的、竖的都不显示了

解决方案 »

  1.   


    能具体点么,我试过ModifyStyle,好像不好使啊
      

  2.   

    自绘。并去掉headerctrl。
    试下。
      

  3.   

    LB_SETHORIZONTALEXTENT
    An application sends an LB_SETHORIZONTALEXTENT message to set the width, in pixels, by which a list box can be scrolled horizontally (the scrollable width). If the width of the list box is smaller than this value, the horizontal scroll bar horizontally scrolls items in the list box. If the width of the list box is equal to or greater than this value, the horizontal scroll bar is hidden. LB_SETHORIZONTALEXTENT 
    wParam = (WPARAM) cxExtent; // horizontal scroll width 
    lParam = 0;                 // not used; must be zero 
     
    Parameters
    cxExtent 
    Value of wParam. Specifies the number of pixels by which the list box can be scrolled. 
    Windows 95 and Windows 98: The wParam parameter is limited to 16-bit values. Return Values
    This message does not return a value. Res
    To respond to the LB_SETHORIZONTALEXTENT message, the list box must have been defined with the WS_HSCROLL style. QuickInfo
      Windows NT: Requires version 3.1 or later.
      Windows: Requires Windows 95 or later.
      Windows CE: Requires version 1.0 or later.
      Header: Declared in winuser.h.See Also
    List Boxes Overview, List Box Messages, LB_GETHORIZONTALEXTENT  
      

  4.   

    使用ShowScrollBar函数
    void ShowScrollBar(
       UINT nBar,
       BOOL bShow = TRUE 
    );
    指定第一个参数为水平滚动条,第二个参数为false可以屏蔽显示水平滚动条
      

  5.   

    ShowScrollBar 好像对CListctrl Report风格没用?不知道楼主是怎么解决的?