The ISWP (set-window-position) class positions and sizes the client window and extension windows of the class IFrameWindow. Classes derived from IFrameHandler may need to manipulate ISWP objects when overriding the IFrameHandler::format and IFrameHandler::positionExtensions functions. For these cases, ISWP objects can be accessed from the class IFrameFormatEvent.
Constructors & DestructorYou can construct, destruct, and copy objects of this class.
![]() |
public:
~ISWP()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
ISWP(const ISWP& original)
Constructs a new object, as a copy of the specified ISWP object.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
ISWP()
The default constructor initializes all data to 0.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
ISWP& operator =(const ISWP& original)
Copies the specified ISWP object.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
DataThese data members store the state of the object.
![]() |
Stores the window that the window identified by the function windowHandle is ordered after. Applying this action is equivalent to calling the function IWindow::positionBehindSibling.
public:
IWindowHandle behind
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
IWindowHandle behind
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
Stores the width to be given to the window identified by the function windowHandle. Applying this action is equivalent to calling the function IWindow::sizeTo.
public:
long cx
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
long cx
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
Stores the height to be given to the window identified by the function windowHandle. Applying this action is equivalent to calling the function IWindow::sizeTo.
public:
long cy
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
long cy
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
Stores flags to indicate what actions are to be applied to the window identified by the function windowHandle.
public:
unsigned long fl
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
unsigned long fl
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
Stores the window that actions are to be applied to.
public:
IWindowHandle hwnd
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
IWindowHandle hwnd
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
unsigned long ulReserved1
Unused at this time.
| Windows | OS/2 | AIX |
| No | Yes | Yes |
![]() |
public:
unsigned long ulReserved2
Unused at this time.
| Windows | OS/2 | AIX |
| No | Yes | Yes |
![]() |
Stores the x-component of where the window identified by the function windowHandle will be positioned on the screen relative to its parent window. Applying this action is equivalent to calling the function IWindow::moveTo.
public:
long x
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
long x
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
Stores the y-component of where the window identified by the function windowHandle will be positioned on the screen relative to its parent window. Applying this action is equivalent to calling the function IWindow::moveTo.
public:
long y
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
long y
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
TestingUse testing members to determine the actions stored for a window.
![]() |
public:
bool isHide() const
Returns if the window identified by the function windowHandle is to be hidden.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
bool isMove() const
Returns if the window identified by the function windowHandle is to be moved. The function position returns the new position of the window.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
bool isShow() const
Returns if the window identified by the function windowHandle is to be made visible.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
bool isSize() const
Returns if the window identified by the function windowHandle is to be sized. The function size returns the new size for the window.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
bool isZOrder() const
Returns if the order of the window identified by the function windowHandle is to be changed, relative to the order of its sibling windows.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Window ManipulationUse these members to identify actions to be applied to a window.
![]() |
public:
unsigned long& flags()
Returns the flags stored in this object.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IPoint position() const
Returns the point where the window identified by the function windowHandle is to be positioned, relative to its parent window.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
ISWP& setHide(bool enable = true)
Specifies whether the window identified by the function windowHandle is to be hidden.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
ISWP& setMove(bool enable = true)
Specifies whether the window identified by the function windowHandle is to be moved.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
ISWP& setNoAdjust(bool enable = true)
Specifies whether the position or size of the window identified by the function windowHandle can be adjusted while it is moved or sized.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
ISWP& setPosition(const IPoint& point)
Set the point where the window identified by the function windowHandle is to be positioned, relative to its parent window.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
ISWP& setShow(bool enable = true)
Specifies whether the window identified by the function windowHandle is to be made visible.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
ISWP& setSize(const ISize& size)
Sets a new size for the window identified by the function windowHandle.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
ISWP& setSizeFlag(bool enable = true)
Specifies whether the window identified by the function windowHandle is to be sized.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
ISWP& setZOrder(bool enable = true)
Specifies whether the order of the window identified by the function windowHandle is to be changed, relative to its sibling windows.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
ISize size() const
Returns the new size for the window identified by the function windowHandle.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IWindowHandle windowHandle() const
Returns the handle of the associated window.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |