XLL+ Class Library (6.3)

CXlMacros::WindowMove

Moves the active window so that its upper-left corner is at the specified horizontal and vertical positions

static int WindowMove(
   long x_pos,
   long y_pos,
   LPCTSTR window_text = 0
);

Parameters

x_pos

X_pos is the horizontal position to which you want to move the window.

y_pos

Y_pos is the vertical position to which you want to move the window.

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