ITextHost::TxShowScrollBar method

Shows or hides the scroll bar in the text host window.

Syntax


BOOL TxShowScrollBar(
  [in]  INT fnBar,
  [in]  BOOL fShow
);

Parameters

fnBar [in]

Type: INT

Specifies the scroll bar(s) to be shown or hidden. This parameter can be one of the following values.

ValueMeaning
SB_BOTHShows or hides a window's standard horizontal and vertical scroll bars.
SB_HORZShows or hides a window's standard horizontal scroll bars.
SB_VERTShows or hides a window's standard vertical scroll bar.

 

fShow [in]

Type: BOOL

Flag. If TRUE, the scroll bars indicated by fnBar is visible. If FALSE, the scroll bar is hidden.

Return value

Type: BOOL

Return TRUE if the method succeeds.

Return FALSE if the method fails.

Remarks

This method is only valid when the control is in-place active; calls while the control is inactive may fail.

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Textserv.h

DLL

Msftedit.dll

See also

ITextHost
Windowless Rich Edit Controls Overview

 

 

Community Additions

ADD
Show:
© 2015 Microsoft