]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/dcprint.cpp
Added back shlwapi.h inclusion with comment
[wxWidgets.git] / src / msw / dcprint.cpp
index 8636a4447cc6610dd5f94999428a0f41c8568adc..5c90a1f9e5c5105838de40833ffb7b117f5cef1f 100644 (file)
 #include "wx/msw/printdlg.h"
 #include "wx/math.h"
 
-#if wxUSE_COMMON_DIALOGS
-    #include <commdlg.h>
-#endif
-
+#include "wx/msw/wrapcdlg.h"
 #ifndef __WIN32__
     #include <print.h>
 #endif
@@ -278,7 +275,7 @@ static bool wxGetDefaultDeviceName(wxString& deviceName, wxString& portName)
         GlobalFree(pd.hDevMode);
         pd.hDevMode=NULL;
     }
-    return ( deviceName != wxEmptyString );
+    return ( !deviceName.empty() );
 }
 
 // Gets an HDC for the specified printer configuration