]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/msgdlg.cpp
compilation fix for wxUSE_STL==1
[wxWidgets.git] / src / msw / msgdlg.cpp
index c0b9100fedc27dce6c2b05d240d087c83ae541b0..6166b125a45b39c73ba59ba3ac0a7d4543cc5668 100644 (file)
@@ -258,7 +258,7 @@ void wxMessageDialog::ReplaceStaticWithEdit()
     HWND hwndEdit = ::CreateWindow
                       (
                         _T("EDIT"),
-                        wxTextBuffer::Translate(text),
+                        wxTextBuffer::Translate(text).wx_str(),
                         WS_CHILD | WS_VSCROLL | WS_VISIBLE |
                         ES_MULTILINE | ES_READONLY | ES_AUTOVSCROLL,
                         rc.left, rc.top,
@@ -442,7 +442,7 @@ int wxMessageDialog::ShowModal()
 
     // use the top level window as parent if none specified
     if ( !m_parent )
-        m_parent = FindSuitableParent();
+        m_parent = GetParentForModalDialog();
     HWND hWnd = m_parent ? GetHwndOf(m_parent) : NULL;
 
     // translate wx style in MSW