ITextHost::TxEnableScrollBar method (textserv.h)
Enables or disables one or both scroll bar arrows in the text host window.
Syntax
BOOL TxEnableScrollBar(
[in] INT fuSBFlags,
[in] INT fuArrowflags
);
Parameters
[in] fuSBFlags
Type: INT
Specifies which scroll bar is affected. This parameter can be one of the following values.
Value | Meaning |
---|---|
|
Affects both the horizontal and vertical scroll bars. |
|
Affects the horizontal scroll bar. |
|
Affects the vertical scroll bar. |
[in] fuArrowflags
Type: INT
Specifies which scroll bar arrows are enabled or disabled. This parameter can be one of the following values.
Return value
Type: BOOL
Return nonzero if the arrows are enabled or disabled as specified.
Return zero if the arrows are already in the requested state or an error occurs.
Remarks
This method is only valid when the control is in-place active; calls while the control is inactive may fail.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | textserv.h |
DLL | Msftedit.dll |