Поделиться через


CSplitterWnd::SetScrollStyle

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

void SetScrollStyle(
   DWORD dwStyle 
);

Параметры

  • 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.

Заметки

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.

Требования

Header: afxext.h

См. также

Основные понятия

CSplitterWnd Class

CSplitterWnd Members

Hierarchy Chart

CSplitterWnd::GetScrollStyle