(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 | |
| Constructor | |
| ~MQPaintBox | Destructor |
| Events | |
| AddPaintEvent | Add an event for a painting |
MQPaintBox::MQPaintBox();
MQPaintBox::MQPaintBox(int id);
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);
It adds events notified when a widget is painted. A plug-in can perform an original drawing by this event.
struct MQWidgetPaintParam {
MQCanvas *Canvas;
};