I have a dialog that contains a scroll bar (SB_CTL) that doesn't give the expected behavior. The first clue is that the size of the thumb button is wrong (too large) for the range/page proportions.
It is initialized to a range of 0 to 112, with a page size of 48.
When I grab the thumb, the position will go from 0 to 65, and no higher.
If click in the 'page down' area, it will go to 96, and no higher.
If I use the 'line up' and 'line down' buttons, it will go the full range 0 to 112, but the thumb position stops early. If the position is at 112 and I click on the thumb (at the bottom of the bar), the position immediately jumps to 65.
My experiments have yielded no joy, so I have distilled a minimum length test case, and I hope someone can please tell me why this code isn't working right. Using WinXP-SP3, VC++ 8.
Last edited by cosmicvoid; April 6th, 2014 at 02:18 PM.
Reason: Add image
I have found a way to get the results I expect, but I'm puzzled as to whether this is the usual way a scroll bar needs to be handled. I've never had this issue before, and I've used scroll bars many times. Or maybe I'm just getting feebleminded in my old age .
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.