X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/519cb848a8f4c91c73421bb75314754284e593a4..79f585d90388128f9d245f7c92d3013b98b9ed14:/src/mac/msgdlg.cpp diff --git a/src/mac/msgdlg.cpp b/src/mac/msgdlg.cpp index 5aa8554038..cf229e5200 100644 --- a/src/mac/msgdlg.cpp +++ b/src/mac/msgdlg.cpp @@ -16,9 +16,7 @@ #include "wx/msgdlg.h" #include "wx/mac/uma.h" -#if !USE_SHARED_LIBRARY IMPLEMENT_CLASS(wxMessageDialog, wxDialog) -#endif #define kMacOKAlertResourceID 128 #define kMacYesNoAlertResourceID 129 @@ -72,12 +70,24 @@ int wxMessageDialog::ShowModal() Str255 pascalTitle ; Str255 pascalText ; - strcpy( (char*) pascalTitle , m_caption ) ; + + if (wxApp::s_macDefaultEncodingIsPC) + { + strcpy( (char*) pascalTitle , wxMacMakeMacStringFromPC( m_caption ) ) ; + strcpy( (char*) pascalText , wxMacMakeMacStringFromPC( m_message) ) ; + } + else + { + strcpy( (char*) pascalTitle , m_caption ) ; + strcpy( (char*) pascalText , m_message ) ; + } + c2pstr( (char*) pascalTitle ) ; - strcpy( (char*) pascalText , m_message ) ; wxMacConvertNewlines( (char*)pascalText ,(char*) pascalText) ; c2pstr( (char*) pascalText ) ; + wxASSERT_MSG( ( m_dialogStyle & 0x3F ) != wxYES , "this style is not supported on mac" ) ; + if ( !UMAHasAppearance() ) { int resourceID ;