wxObject *wxDialogXmlHandler::DoCreateResource()
{
- wxDialog *dlg = wxDynamicCast(m_Instance, wxDialog);
+ wxDialog *dlg = wxDynamicCast(m_instance, wxDialog);
wxASSERT_MSG(dlg, _("XML resource: Cannot create dialog without instance."));
- dlg->Create(m_ParentAsWindow,
+ dlg->Create(m_parentAsWindow,
GetID(),
- GetText(_T("title")),
+ GetText(wxT("title")),
wxDefaultPosition, wxDefaultSize,
- GetStyle(_T("style"), wxDEFAULT_DIALOG_STYLE),
+ GetStyle(wxT("style"), wxDEFAULT_DIALOG_STYLE),
GetName());
dlg->SetClientSize(GetSize());
dlg->Move(GetPosition());
bool wxDialogXmlHandler::CanHandle(wxXmlNode *node)
{
- return node->GetName() == _T("dialog");
+ return IsOfClass(node, wxT("wxDialog"));
}