The IPaintConnectionTo class is a template class, derived from IPaintHandler, that processes paint events. This class allows you to process paint events in objects that do not derive from IPaintHandler without having to manually derive from IPaintHandler, override the paintWindow function, and pass the event to the object.
To use the IPaintConnectionTo class to process paint events, follow these steps:
You use an IPaintConnectionTo object anywhere you use an IPaintHandler object. See the class description of IPaintHandler for a description of the uses and limitations of these classes.
Constructors & DestructorYou can construct and destruct objects of this class. You cannot copy or assign objects of this class.
![]() |
public:
virtual ~IPaintConnectionTo()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IPaintConnectionTo( ATarget& target, MemberFunction memberFunction )
Constructs the IMouseConnectionTo object.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
Event ProcessingThese members are overridden to route paint events to the target object that you provided on construction.
![]() |
protected:
virtual bool paintWindow(IPaintEvent& event)
Overridden to route paint events to the member function of the Target object provided on construction.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
typedef bool (ATarget::*MemberFunction)(IPaintEvent&)
A pointer to a member function of Class ATarget that takes a reference to an IPaintEvent and returns a boolean.
| 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)
virtual ~IPaintHandler()
virtual IEventResult defaultProcedure(IEvent& event)
virtual bool dispatchHandlerEvent(IEvent& event) = 0
virtual bool dispatchHandlerEvent(IEvent& event)
IPaintHandler()
virtual bool paintWindow(IPaintEvent& event) = 0