哪位仁兄 知道 “如何 去掉 ClistCtrl控件的 横向 滚动条”呀?? 
控件中记录过多时,竖向滚动条就会出现,同时 横向的也出来了,请问:能否不让出现横向的滚动条呀???
请仁兄赐教!谢谢

解决方案 »

  1.   

    水平滚动条是根据listctrl的内容是否超过宽度,来判断产生的吧。。不知道属性里面是否有选项可控
      

  2.   

    在CListCtrl的属性里有Styles,选中No Scroll
      

  3.   

    void ShowScrollBar( UINT nBar, BOOL bShow = TRUE );ParametersnBarSpecifies whether the scroll bar is a control or part of a window’s nonclient area. If it is part of the nonclient area, nBar also indicates whether the scroll bar is positioned horizontally, vertically, or both. It must be one of the following: SB_BOTH   Specifies the  horizontal and vertical scroll bars of the window.
    SB_HORZ   Specifies that the window is a horizontal scroll bar.
    SB_VERT   Specifies that the window is a vertical scroll bar. 
    bShowSpecifies whether Windows shows or hides the scroll bar. If this parameter is TRUE, the scroll bar is shown; otherwise the scroll bar is hidden.
      

  4.   

    To 楼上lizifong(罗克)朋友:
      你好!很久不见老兄露面了,不知你的“毕业设计”可有更新版本的?^_^
      

  5.   

    To Snow_Ice11111(雪上加冰):
    我对你的印象比较深,觉得你是一个万事较真的人. 
    "毕业设计"正在更新中,你提到的几点中肯的建议我正在CODING.
    到时还请你提宝贵意见.昨晚在"遇到八年前的恋人"中看到你的踩有脚印, 呵呵
      

  6.   

    To lizifong(罗克):
      那天晚上才看到"遇到八年前的恋人"的贴子,细细看完了后,不小心天就亮了,见笑了!呵呵
      很久前看到你的“毕业设计”时,就觉得程序的界面做得非常不错,看来你在这方面颇有研究,也下了不少心血吧!提意见不敢当,只是一直很希望能把你的代码拿来学习一下,是不是太贪心了^_^