Help with WinAPI scroll bars

Posted by user146780 on Stack Overflow See other posts from Stack Overflow or by user146780
Published on 2010-06-05T13:46:10Z Indexed on 2010/06/05 13:52 UTC
Read the original article Hit count: 196

Filed under:
|
|

Right now I have a window with horizontal ad vertical scrollbars. I use these parameters to initialize it.

//Set OGL Frame scroll bar
    SCROLLINFO inf;
    inf.cbSize = sizeof(SCROLLINFO);
    inf.fMask = SIF_PAGE | SIF_POS;
    inf.nPage = 20;
    inf.nPos = 30;

It creates them in the center and I like their size, but when I scroll I multiply by 50 which creates chopiness. How could I add more resolution to the bars and still keep the same thumb size. Is there a way I can calculate the size and position of the bar based on the above parameters?

Thanks

© Stack Overflow or respective owner

Related posts about c++

Related posts about c