Link to home
Start Free TrialLog in
Avatar of sureshreddy999
sureshreddy999

asked on

How add Scroll bar dynamically to an Edit control

HI,
Can any one help me in adding  scroll bar to an Edit control. That should be as a part of edit box,
thanks
Avatar of MichaelS
MichaelS

LONG lStyle = GetWindowLong(hwndEdit, GWL_STYLE);

SetWindowLong(hwndEdit, GWL_STYLE, WS_HSCROLL | lStyle);

or you can use WS_VSCROLL, or both. If you use MFC you have to drop first parameter of these functions or use :: before them.
Hi,

In Properties for that edit box in the resource editor check Multiline and vertival scroll bar properties.

Try it out.
Sorry, Sorry, I was somewhere else!?@#$%^&*(()()
!@#!@#!@$.
Avatar of sureshreddy999

ASKER

No moichale This is not woring I tried it. Can u suggest meother way of doing it. I wanna add a vertical scroll bar
ASKER CERTIFIED SOLUTION
Avatar of pagladasu
pagladasu

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial