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:

  • RetVal% Nonzero integer if the function succeeds, zero if the function fails.
  • 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.

Example: BCX_GRAFX_DEMO.bas