XLL+ Class Library (6.3)

CXlMacros::WindowSize

Changes the size of the active window by moving its lower-right corner so that the window has the width and height you specify

static int WindowSize(
   long x_num,
   long y_num,
   LPCTSTR window_text = 0
);

Parameters

x_num

specifies the width of the window and is measured in points.

y_num

specifies the height of the window and is measured in points.

window_text

Window_text specifies which window to switch to and restore.

Return Value

Zero if the function has been called successfully; non-zero if the function could not be called. See Error codes for a list of return values.

Remarks

See the Microsoft Excel on-line Help for full details about this function.

Requirements

Header: xlfuncs.h

See Also

CXlMacros Class | CXlMacros Methods