Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
TRACKINFO (1.2)
◄Changes► ◄Up► ◄Next► ◄Previous►
────────────────────────────────────────────────────────────────────────────
#define INCL_WINTRACKRECT
typedef struct _TRACKINFO { /* ti */
SHORT cxBorder;
SHORT cyBorder;
SHORT cxGrid;
SHORT cyGrid;
SHORT cxKeyboard;
SHORT cyKeyboard;
RECTL rclTrack;
RECTL rclBoundary;
POINTL ptlMinTrackSize;
POINTL ptlMaxTrackSize;
USHORT fs;
} TRACKINFO;
The TRACKINFO structure contains information about a tracking rectangle used
by the WinTrackRect function.
Field Description
────────────────────────────────────────────────────────────────────────────
cxBorder Specifies the border width.
cyBorder Specifies the border height.
cxGrid Specifies the horizontal bounds of the tracking movements.
cyGrid Specifies the vertical bounds of the tracking movements.
cxKeyboard Specifies the amount of horizontal movement that occurs
when the user presses the LEFT ARROW or RIGHT ARROW key.
cyKeyboard Specifies the amount of vertical movement that occurs when
the user presses the UP ARROW or DOWN ARROW key.
rclTrack Specifies the starting tracking rectangle. This is modified
as the rectangle is tracked and holds the new tracking
position when tracking is complete.
rclBoundary Specifies an absolute boundary for the tracking rectangle.
ptlMinTrackSize Specifies the minimum tracking size.
ptlMaxTrackSize Specifies the maximum tracking size.
fs Specifies tracking options. This field can be a combination
of the following values:
Option Meaning
───────────────────────────────────────────────────────────
TF_LEFT Track the left side of the rectangle.
TF_TOP Track the top side of the rectangle.
TF_RIGHT Track the right side of the rectangle.
TF_BOTTOM Track the bottom side of the rectangle.
TF_MOVE Track all sides of the rectangle.
TF_SETPOINTERPOS Repositions the pointer according to the
other options specified.
TF_LEFT Vertically centers the pointer at the
left of the tracking rectangle.
TF_TOP Horizontally centers the pointer at the
top of the tracking rectangle.
TF_RIGHT Vertically centers the pointer at the
right of the tracking rectangle.
TF_BOTTOM Horizontally centers the pointer at the
bottom of the tracking rectangle.
TF_MOVE Centers the pointer in the tracking
rectangle.
TF_GRID Restricts tracking to the grid defined
by cxGrid and cyGrid.
TF_STANDARD The width, height, grid width, and grid
height are all multiples of border width
and border height.
TF_ALLINBOUNDARY Performs tracking so that no part of the
tracking rectangle ever falls outside
the bounding rectangle.
TF_PARTINBOUNDARY Performs tracking so that values of
cxLeft, cyBottom, cxRight, and cyTop
specify how much of the corresponding
edge of the tracking rectangle must be
kept within the opposite edge of the
boundary rectangle.
See Also
WinTrackRect
♦