GETDIMENSION function

Purpose: GETDIMENSION returns a "left", "top", "width" or "height" dimension of the bounding rectangle of a specified window.


 Syntax:

 DimValue% = GETDIMENSION(Dimension$, hWnd, Flag%)
 

 Parameters:

  • DimValue% receives the returned dimensional value.
  • Dimension$ specifies "left", "top", "width" or "height" dimension to return.
  • hWnd HWND handle to window from which the dimension value is to be returned.
  • Flag% set to TRUE specifies pixels, FALSE specifies twips, as the dimensional unit for the returned value.

SETDIMENSION statement

Purpose: SETDIMENSION sets a "left", "top", "width" or "height" dimension of the bounding rectangle of a specified window.


 Syntax:

 SETDIMENSION(Dimension$, DimValue%, hWnd, Flag%)

 Parameters:

  • Dimension$ specifies "left", "top", "width" or "height" dimension to set.
  • DimValue% specifies the value of dimension to set.
  • hWnd HWND handle to window for which the dimension value is to be set.
  • Flag% set to TRUE specifies pixels, FALSE specifies twips, as the dimensional unit for the value to be set.