This topic has not yet been rated - Rate this topic

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

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.