我想在dialog中放一个类似于delphi中的ScrollBox的控件(主要功能:能够在里面放控件并且能在超过ScrollBox高、宽时实现滚动)
控件也可,自己编写类也可,请大家帮忙

解决方案 »

  1.   

    你用vc的scroll bar自己控制不行吗
      

  2.   

    (copy form msdn)
    CWnd::ShowScrollBar
    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.ResShows or hides a scroll bar. 
      

  3.   

    我是想做一个不依赖dialog的滚动区域
      

  4.   

    我只想在窗口中滚动独立的区域(类似listbox,但是里面能放其他控件)