MQPaintBox class

(new in Rev4.02)

MQPaintBox class manages an area for a painting. It inherits a MQWidgetBase class.

Please refer the inherited class about member functions declared in the inherited class.

Class

MQPaintBox

Constructor
~MQPaintBox Destructor
Events
AddPaintEvent Add an event for a painting

MQPaintBox::MQPaintBox();

MQPaintBox::MQPaintBox(int id);

id
A widget ID created outside the plug-in

It is a constructor.


virtual MQPaintBox::~MQPaintBox();

This method is a destructor. It is defined as a virtual function.


template<typename T> void MQPaintBox::AddPaintEvent(T *p, BOOL (T::*f)(MQWidgetBase*, MQDocument, MQWidgetPaintParam&), bool prior = false);

p
A widget to notify events
f
A member function to notify events
prior
An order to notify events
[true] Notify first
[false] Notify last

It adds events notified when a widget is painted. A plug-in can perform an original drawing by this event.

struct MQWidgetPaintParam {
	MQCanvas *Canvas;
};
Canvas
A drawing canvas