-//TODO: Greg Hazel reports problems with this... but win2k seems fine on mine...
-// m_ctrl->Connect(m_ctrl->GetId(), wxEVT_ERASE_BACKGROUND,
-// wxEraseEventHandler(wxAMMediaEvtHandler::OnEraseBackground),
-// NULL, (wxEvtHandler*) this);
- m_ctrl->Connect(m_ctrl->GetId(), wxEVT_PAINT,
- wxPaintEventHandler(wxAMMediaEvtHandler::OnPaint),
+ //TODO: Greg Hazel reports problems with this... but win2k seems fine on mine...
+ //-------------------------------------------------------------------------------
+ // My problem with this was only with a previous patch, probably the third rewrite
+ // fixed it as a side-effect. In fact, the erase background style of drawing not
+ // only works now, but is much better than paint-based updates (the paint event
+ // handler flickers if the wxMediaCtrl shares a sizer with another child window,
+ // or is on a notebook)
+ // - Greg Hazel
+ m_ctrl->Connect(m_ctrl->GetId(), wxEVT_ERASE_BACKGROUND,
+ wxEraseEventHandler(wxAMMediaEvtHandler::OnEraseBackground),