BCX_PRESET function

Purpose: BCX_PRESET sets the starting position of the next drawing command to X% (horizontal) Y% (vertical).


Syntax:

 RetVal% = BCX_PRESET(hWnd, X%, Y% [, DrawHDC])

Parameters:

  • hWnd Identifies the window where drawing takes place.
  • Xpos% X-coordinate of the position.
  • Ypos% Y-coordinate of the position.
  • DrawHDC [OPTIONAL] HDC (Handle to Device Context) pointing to an already open HDC. This is useful if a device context is to be written to many times. In this case the programmer is responsible for closing the HDC at the appropriate time.

Return Value:

  • RetVal% is a nonzero integer if the function succeeds, zero if the function fails.

Example: BCX_GRAFX_DEMO.bas