//
// The fourth is an optional userdata param -
// this is of historical relevance only and is
- // there only for backwards compatability.
+ // there only for backwards compatibility.
//
// The fifth is the context in which to call the
// handler - by default (this param is optional)
//
// Create our media control
//
- m_mediactrl = new wxMediaCtrl(this, wxID_MEDIACTRL);
+ m_mediactrl = new wxMediaCtrl();
+
+ // Make sure creation was successful
+ bool bOK = m_mediactrl->Create(this, wxID_MEDIACTRL);
+ wxASSERT_MSG(bOK, wxT("Could not create media control!"));
+
vertsizer->Add(m_mediactrl, 0, wxALIGN_CENTER_HORIZONTAL|wxALL, 5);
//