AdjustInitEndPt

  POINT AdjustInitEndPt(lpPntStruct, Y, X)    
  LPEXTPAINTSTRUC lpPntStruct;    
  WORD Y;    
  WORD X;    

The AdjustInitEndPt function adjusts the initial-selection end point.

Parameters

lpPntStruct

Points to an EXTPAINTSTRUC structure.

Y

Specifies the y-coordinate of the point to be adjusted.

X

Specifies the x-coordinate of the point to be adjusted.

Return Value

The return value is a POINT structure containing the end point adjusted down and to right for initial selection.

Comment

The export ordinal for this function is 17.

Initially, the start point and the end point are the same. When the user extends the selection by pressing a SHIFT+arrow key combination, WINOLDAP calls the AdjustInitEndPt function to ensure that the selection rectangle is not empty but encloses at least one character.

See Also

BeginSelection