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.
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.
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.
The export ordinal for this function is 5.
The function sets the SelctSRect member of the SelStruc member.