]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/dlgcmn.cpp
Replaced (char*)wxFNCONV with (const char*)wxFNCONV
[wxWidgets.git] / src / common / dlgcmn.cpp
index c708a96e2591af62ef89334f537f53c9cdc31068..eccae2934a189fde363b7e6b89660b3c87ec78a8 100644 (file)
@@ -33,7 +33,9 @@
 #ifndef WX_PRECOMP
     #include "wx/dialog.h"
     #include "wx/dcclient.h"
+    #include "wx/intl.h"
     #include "wx/settings.h"
+    #include "wx/stattext.h"
 #endif
 
 // ----------------------------------------------------------------------------
@@ -65,7 +67,14 @@ wxSize wxDialogBase::SplitTextMessage(const wxString& message,
     {
         if ( *pc == _T('\n') || !*pc )
         {
+#if defined(__VISAGECPP__)
+// have two versions of this in wxWindowDC tp avoid function hiding
+// since there are two of these in wxDCBase, and in turn in wxDC.
+// VA cannot resolve this so:
+            dc.GetTextExtent(curLine, &width, &height, NULL, NULL, NULL, FALSE);
+#else
             dc.GetTextExtent(curLine, &width, &height);
+#endif
             if ( width > widthTextMax )
                 widthTextMax = width;
             if ( height > heightTextMax )