-
winxp style scrollbars.
I am able to make the scrollbars using showscrollbar and edit its values using setscrollpos/range. Now how do I set the width of the scrollbar. E.g. if the value is 0 then the thumb should take up all the room in the scrollbar or if it is arount 50 it should take about 40% of the room where the person can move the thumb. I could do this using one of MS controls but they don't have the XP style.
Thanx in advance!
-
>>Now how do I set the width of the scrollbar.<<
If you mean 'thumb dimensions' then I think this is done via SetScrollPos in response to WM_VSCROLL/WM_HSCROLL messages, which you are probably aware of.Perhaps there may be something of use to you here. Sorry I can't be more helpful on this one.
>>I could do this using one of MS controls but they don't have the XP style. <<
Using Windows XP Visual Styles.
The quickest/easiest way to use xp visual styles is to call InitCommonControlsEx (link with comctl32.lib) and include an xp manifest file in the same directory as your executable. This is good for all controls ie. both common and standard controls (such as scrollbars).
-
Thanx I founded. I found other posts with a similer question. to do this without using any extra controls all api. use setscrollinfo for the SCROLLINFO structure nPage will determine the size of the thumb.
Hope that helps any one else with this problem!