internal void ProcessCustomMessages(ref Message msg)
{
if (msg.Msg == Presenter.CM_PAINT)
{
if (msg.LParam == (IntPtr)(-1))
GraphicViewManager.Instance.Presenter.PresentImmediately(-1);
else
GraphicViewManager.Instance.Presenter.PresentImmediately((int)msg.LParam);
}
else if (msg.Msg == Presenter.CM_TRACKINGPAINT)
GraphicViewManager.Instance.Presenter.TrackingPaintImmediately((int)msg.LParam);
}