Windows 3.1 Device Drivers (ddag31qh.hlp) (Table of Contents; 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.
MakeSelctRect
                                                     Up Next Previous
────────────────────────────────────────────────────────────────────────────
 
WORD MakeSelctRect(lpPntStruc, Y, X)
LPEXTPAINTSTRUC lpPntStruc;
WORD Y;
WORD X;
 
The MakeSelctRect function sets a new selection. It is called after every
call to KeySelection in response to SHIFT+arrow key. Given a new end point,
it adjusts the new end point to be character aligned in text mode (and on a
convenient boundary in the video memory in graphics mode). It also adjusts
for maximum width and height of the screen. It sets the selection rectangle
based on the current start point and end point.
 
Parameter   Description
────────────────────────────────────────────────────────────────────────────
 
 
lpPntStruc  Points to an EXTPAINTSTRUC structure.
 
Y           Specifies the y-coordinate of the new end point.
 
X           Specifies the x-coordinate of the new end point.
 
Return Value
 
The return value is zero if no change was made to selection parameters. The
SelctSRect member of the SelStruc member must still be set in this case.
 
Comments
 
The export ordinal for this function is 5.
 
The function sets the SelctSRect member of the SelStruc member.
 
See Also
 
KeySelection, EXTPAINTSTRUC