BeginSelection

  void BeginSelection(lpPntStruct, Y, X)    
  LPEXTPAINTSTRUC lpPntStruct;    
  WORD Y;    
  WORD X;    

The BeginSelection function starts the selection at the indicated point by setting the display and selection rectangles in the EXTPAINTSTRUC structure.

Parameters

lpPntStruc

Points to an EXTPAINTSTRUC structure.

Y

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

X

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

Return Value

This function has no return value.

Comments

The export ordinal for this function is 3.

The function sets the SelectSRect and GrabArea members of the SelStruc member in the EXTPAINTSTRUC structure, making the start and end points for the selection and display rectangles the same. The function also sets the SELECTON bit in the SelecFlags member of the GrabArea member of the SelStruc member of the EXTPAINTSTRUC structure.

See Also

AdjustInitEndPt, EndSelection