IResizeHandler

The IResizeHandler class handles the notification of resizing events. These events notify a window or control that it has increased or decreased on the screen.

Create a handler derived from IResizeHandler and attach it to a window or control. You can do this by calling IHandler::handleEventsFor to pass the window or control to the resize handler.

When the resize handler receives a resize event, it creates a IResizeEvent object and routes that object to the virtual function IResizeHandler::windowResize. You can override this virtual function to supply your own specialized processing of a resize event.

The return value from the virtual function specifies whether the resize event should be passed on for additional processing, as follows:

true
The resize event requires no additional processing. Do not pass it to another handler.
false
Pass the resize event to the next handler for additional processing, as follows:
  • If there is another handler for the control or window, pass the resize event to the next handler.
  • If this is the last handler for the control or window, call IWindow::defaultProcedure to process the resize event.


IResizeHandler - Member Functions and Data by Group

Constructors & Destructor

Only derived classes can construct objects of this class.


[view class]
~IResizeHandler
public:
virtual ~IResizeHandler()

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


[view class]
IResizeHandler
protected:
IResizeHandler()

Derived classes call this default constructor to create objects of this class.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Event Dispatching

The Open Class Library dispatches events that have been sent or posted to a window to the handlers attached to that window. It does this by calling the event-dispatching function of the handler objects. An IResizeHandler object processes only window-resizing events.


[view class]
dispatchHandlerEvent
protected:
virtual bool dispatchHandlerEvent(IEvent& event)

If a resize event is received, this function calls the appropriate virtual function.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


Event Processing

A resize handler contains an event-processing member that you use to process a window-resizing event. You should override this virtual function in a derived class.


[view class]
windowResize
protected:
virtual bool windowResize(IResizeEvent& event) = 0

Implemented by derived classes to handle a resizing event. A derived class must supply this function.

Supported Platforms

Windows OS/2 AIX
Yes Yes Yes


IResizeHandler - Inherited Member Functions and Data

Inherited Public Functions

IHandler

Inherited Public Data

Inherited Protected Functions

IHandler

Inherited Protected Data