msgs12.hlp (Topic list)
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.
WM_QUERYTRACKINFO (1.2)
Message Group  Overview                           Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
#define INCL_WINFRAMEMGR
 
WM_QUERYTRACKINFO
fTrack = (BOOL) SHORT1FROMMP(mp1);   /* tracking flags       */
pti = (PTRACKINFO) PVOIDFROMMP(mp2); /* pointer to TRACKINFO */
 
The WM_QUERYTRACKINFO message is sent to the window procedure of the owner
of a title-bar control window at the start of track-move processing.
 
Parameter  Description
────────────────────────────────────────────────────────────────────────────
 
fTrack     Low word of mp1. Specifies tracking flags. This parameter can be
           one or more of the following flags:
 
           Value                 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      Reposition the pointer according to the
                                 other options specified.
 
           TF_FIXLEFT            Vertically center the pointer at the left
                                 of the tracking rectangle.
 
           TF_FIXTOP             Horizontally center the pointer at the top
                                 of the tracking rectangle.
 
           TF_FIXRIGHT           Vertically center the pointer at the right
                                 of the tracking rectangle.
 
           TF_ALLINBOUNDARY      Perform tracking so that no part of the
                                 tracking rectangle ever falls outside the
                                 bounding rectangle.
 
           TF_FIXBOTTOM          Horizontally center the pointer at the
                                 bottom of the tracking rectangle.
 
           TF_GRID               Restrict tracking to the grid defined by
                                 the cxGrid and cyGrid fields.
 
           TF_PARTINBOUNDARY     Perform tracking so that all the tracking
                                 rectangle never falls outside the bounding
                                 rectangle.
 
           TF_STANDARD           The width, height, grid width and grid
                                 height are all multiples of border width
                                 and border height.
 
           TF_VALIDATETRACKRECT  Check the tracking rectangle against size
                                 and boundary limits and modify it to fit if
                                 necessary. No actual tracking takes place;
                                 return after validating.
 
pti        Low and high word of mp2. Points to a TRACKINFO structure.
 
Return Value
 
An application should return TRUE to continue sizing or moving. It should
return FALSE to terminate sizing or moving.
 
See Also
 
WM_TRACKFRAME, TRACKINFO