| Home | TOC | Index |
| DoIndepArrowResponse | DoOwnerResponse | DoReStyleControl | DoAdjustRect | DoGetExtent | DoGetCurrentPage | DoGetCurrentGroup |
VARIANT DoAdjustRect(long cx, long cy, long id, short orientation, short trackersize, short tickinterval, long styles, long min, long max, long pagesize, long pos, long indent, short radix, BOOL invert)
This method computes the minimum size of the rectangle of the Scrollbar which can display the desired properties, styles and states. This is invoked after creation and prior to restyling the scrollbar.
NAME |
TYPE |
VALUE AND MEANING |
|---|---|---|
CX |
long |
This parameter is loaded with the approriate "width" or the side perpendicular to the orientation of the scrollbar (placed always in cx), if so desired. If cx is assigned as 0, the width of the rectangle will be the suggested trackersize. |
CY |
long |
The parameter cy has no significant use at the moment. |
NAME |
TYPE |
VALUE AND MEANING |
|---|---|---|
id |
long |
|
orientation |
short |
|
trackersize |
short |
|
tickinterval |
short |
|
styles |
long |
NAME |
TYPE |
VALUE AND MEANING |
|---|---|---|
min |
long |
|
max |
long |
|
pagesize |
long |
|
pos |
long |
Pos is not significant for determining the desired size. It is, however, used to pass layout instructions and loaded with the appropriate value. 0Layout the scrollbar with no tracklevel, and the pages have appropriate tick divisions. 1..255Layout the scrollbar with the desired tracklevel if possible. Please drop 256 in 257..511. 256Layout the scrollbar such that the length of the track is equal to the radix*tickinterval and tracker even if the number of pages is less than the radix. |
indent |
long |
|
radix |
short |
|
invert |
BOOL |
The return of the Method is a Variant containing a safearray having a single dimension of three (3) long variables. The first variable is the outgoing layout report specifiying the actual TrackLevelMax computed, plus mask-value of 512 if the desired tracklevel requested was not possible. If the mask-value is absent the resulting size returned in the second and third variables for cx and cy, respectively, is the desired value. Please take note that the function will not inform the programmer or attempt to correct the value of cx or cy which go beyond the possible storable values.
4/13/2006, 1:16:00 PM
| Home | TOC | Index |