The IRecoordHandler class handles the notification that a window or control is being resized.
A recoordination event notifies a window when the size and position of the window's client area must be calculated. This event is processed by this handler to make any adjustments in child window coordinates which are necessary due to the window size change. This handler is distinct from an IResizeHander in that it runs before the IResizeHander and processes a different message. The message handled by the IRecoordHandler is WM_CALCVALIDRECTS/WM_NCCALCSIZE.
IRecoordHandler processes the resizing event by creating an IRecoordEvent object and routing it to the virtual windowSizeChanged function. You can override this virtual function to supply your own specialized processing of a resizing event.
The following return values from the virtual functions specify whether the window event is passed on for additional processing:
Constructors & DestructorThe only way to create objects of this class is by using the default constructor.
![]() |
public:
virtual ~IRecoordHandler()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IRecoordHandler()
Used by derived classes to construct objects of this class. This is the default constructor and accepts no parameters.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Event DispatchingEvent-dispatching members evaluate an event to determine if it is appropriate for this handler object to process it. If it is, it calls the virtual function used to process the event.
![]() |
protected:
virtual bool dispatchHandlerEvent(IEvent& event)
If a resizing event is received, the windowSizeChanged virtual function is called.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Event ProcessingEvent-processing members must be supplied to process events affecting recoordination. You can override these virtual members in a derived class.
![]() |
protected:
virtual bool windowSizeChanged( IWindowHandle handle, const IRectangle& newWindowRect, const IRectangle& oldWindowRect )
Processes resizing events. This member is called when the event indicates that the size of the window with window handle handle has changed. It is implemented by derived classes.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
virtual ~IHandler()
virtual IString asDebugInfo() const
virtual IString asString() const
virtual IHandler& disable()
virtual IHandler& enable(bool enable = true)
virtual IHandler& handleEventsFor(IWindow* window)
IHandler()
bool isEnabled() const
virtual IHandler& stopHandlingEventsFor(IWindow* window)
static IRecoordHandler* defaultHandler()
virtual IEventResult defaultProcedure(IEvent& event)
virtual bool dispatchHandlerEvent(IEvent& event) = 0