]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dialog.cpp
compilation fixes for wxMSW
[wxWidgets.git] / src / msw / dialog.cpp
index d1979b9a4e3639b27b3df6a6ffd326176ba6df9b..7870d6aebeccbd8994d61e4bfaf937be0684cdcb 100644 (file)
@@ -26,6 +26,8 @@
 #include "wx/frame.h"
 #include "wx/app.h"
 #include "wx/settings.h"
+#include "wx/intl.h"
+#include "wx/log.h"
 #endif
 
 #include "wx/msw/private.h"
@@ -120,13 +122,13 @@ bool wxDialog::Create(wxWindow *parent, wxWindowID id,
     // Allows creation of dialogs with & without captions under MSWindows,
     // resizeable or not (but a resizeable dialog always has caption -
     // otherwise it would look too strange)
-    const char *dlg;
+    const wxChar *dlg;
     if ( style & wxTHICK_FRAME )
-        dlg = "wxResizeableDialog";
+        dlg = _T("wxResizeableDialog");
     else if ( style & wxCAPTION )
-        dlg = "wxCaptionDialog";
+        dlg = _T("wxCaptionDialog");
     else
-        dlg = "wxNoCaptionDialog";
+        dlg = _T("wxNoCaptionDialog");
     MSWCreate(m_windowId, parent, NULL, this, NULL,
               x, y, width, height,
               0, // style is not used if we have dlg template
@@ -478,7 +480,7 @@ bool wxDialog::Show(bool show)
 
 void wxDialog::SetTitle(const wxString& title)
 {
-  SetWindowText((HWND) GetHWND(), (const char *)title);
+  SetWindowText((HWND) GetHWND(), title.c_str());
 }
 
 wxString wxDialog::GetTitle() const