MSDN Home >  MSDN Library >  User Interface Design and Development >  Windows Shell >  Windows Controls >  Individual Control Information >  Rich Edit Controls > 

EM_SHOWSCROLLBAR Message


The EM_SHOWSCROLLBAR message shows or hides one of the scroll bars in the Text Host window.

Syntax

To send this message, call the SendMessage function as follows.
lResult = SendMessage(     // returns LRESULT in lResult
   (HWND) hWndControl,     // handle to destination control
   (UINT) EM_SHOWSCROLLBAR,     // message ID
   (WPARAM) wParam,     // = (WPARAM) () wParam;
   (LPARAM) lParam     // = (LPARAM) () lParam;
);

Parameters

wParam
Identifies which scroll bar to display: horizontal or vertical. This parameter must be SB_VERT or SB_HORZ.
lParam
Specifies whether to show the scroll bar or hide it. Specify TRUE to show the scroll bar and FALSE to hide it.

Return Value

This message does not return a value.


Remarks

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

Message Information

HeaderDeclared in Richedit.h
Minimum operating systems Windows 95 with Rich Edit 2.0, Windows 98, Windows NT 4.0

See Also

Rich Edit Controls, EM_GETSCROLLPOS, EM_SETSCROLLPOS
 Contact Us   |  E-Mail this Page   |  MSDN Flash Newsletter
 © 2003 Microsoft Corporation. All rights reserved.   Terms of Use  Privacy Statement   Accessibility