News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

scrollinfo

Started by shankle, December 24, 2007, 01:33:04 PM

Previous topic - Next topic

shankle

Which parm controls the vertical length of the scrollbar. I have the
sdk for the scrollinfo and as usual the info is vague.
For all I know maybe that's not the way its controlled.
Thanks for any help.
JPS
The greatest crime in my country is our Congress

ramguru

If I were setting vertical scrollbar (SB_VERT), usually in WM_SIZE handler, that part of SCROLLINFO would be:
nMin, nMax, nPage
where
nMin - usually 0
nMax - number of maximum scroll units, for example you want to imitate RGB color chooser, that value would be 255 then; let's say you opened text-file .. so the value in this case would be total number of lines (number of new line-separators);
nPage - number of scroll units that fit into the screen (or any other number if preferred);  let's say you opened text-file .. so the value would be number of visible lines, 36 f.e.

also you should specify what values you're changing in fMask SIF_PAGE+SIF_RANGE+SIF_DISABLENOSCROLL

shankle

Thanks for the reply.
I need to shorten the scroll bar to about half of the vertical height
of the screen. I know about nMin, nMax, nPage and have changed
values in them but still get a full page height on the scrollbar.
JPS
The greatest crime in my country is our Congress