Condividi tramite


CSplitterWnd::SetScrollStyle

Specifies the new scroll style for the splitter window's shared scroll-bar support.

void SetScrollStyle(
   DWORD dwStyle 
);

Parameters

  • dwStyle
    The new scroll style for the splitter window's shared scroll-bar support, which can be one of the following values:

    • WS_HSCROLL   Create/show horizontal shared scroll bars.

    • WS_VSCROLL   Create/show vertical shared scroll bars.

Remarks

Once a scroll bar is created it will not be destroyed even if SetScrollStyle is called without that style; instead those scroll bars are hidden. This allows the scroll bars to retain their state even though they are hidden. After calling SetScrollStyle it is necessary to call RecalcLayout for all the changes to take effect.

Requirements

Header: afxext.h

See Also

Reference

CSplitterWnd Class

Hierarchy Chart

CSplitterWnd::GetScrollStyle

Other Resources

CSplitterWnd Members