GetWndDim (hwnd)

Returns a DIM record, which describes the pixel dimension of the given window hwnd.  See: DIM Record.

The horizontal dimension returned is the width of the text area of the window only. It does not include the left margin or the symbol window attached to the source window.