XLL+ Class Library

CXlMacros::WindowMove

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

[C++]
static int WindowMove(
   long x_pos,
   long y_pos,
   const char* 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