Hi,
As far as I remember, in plain Windows API certain bits in either class
style or window style were used to indicate whether the window should have
horizontal/vertical scroll bars. These can be altered through
SetClassLong/SetWindowLong after the window has been created, but this only
controls the visibility of the scroll bars, the window should still react on
WM_HSCROLL and WM_VSCROLL to make the scroll bars "live" (as well as the
window should correctly initialize the scrollbars' min/max values).
As for the PrintPreview control, I remember it displays the scroll bar
automatically when necessary. Could you please elaborate on what exactly
behavior you want to implement? Do you want to make the scroll bar always
visible, even when there's nothing to scroll?
--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx
"Sachin" <sa*****@softbridge-s.com> wrote in message
news:6B**********************************@microsof t.com...
To display the vertical scroll bar of any control (Print Preview Control
in perticular)which window message is set? pls guide
--
sachin