Click here to Skip to main content
15,886,724 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am facing a strange problem.

I am creating one scrollable picture control.
If the size of image is greater than the static control size then only scroll bar is visible.
I am using SetScrollInfo function and set SCROLLINFO fmask to SIF_ALL but it displays the two scrollbars.
(The reason I found for this is that if SIF_RANGE is set then two scrollbars appear).

But, if I dont select the SIF_RANGE as a property then scrollbar displays ok, but position of scroll is not changed.
:(

Please please give some light on it why is it so ??
Posted
Updated 24-Nov-10 1:35am
v2
Comments
Dalek Dave 24-Nov-10 7:35am    
Edited for Grammar, Syntax and Readability.
Richard MacCutchan 24-Nov-10 10:04am    
I'm not sure I understand what you mean when you say "scrollbar displays ok, but position of scroll is not changed.". Perhaps you could update your question to clarify, and add some of the code you use to set the scrollinfo properties.

1 solution

 
Share this answer
 
Comments
Dalek Dave 24-Nov-10 7:35am    
Good Call.
ShilpiP 24-Nov-10 7:39am    
Please check the tag its c++ and MFC and second my problem is not that is given in that link.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900