]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/display.cpp
fixed crash when using GTK theme
[wxWidgets.git] / src / msw / display.cpp
index 2dd19b26f270f4b4a0b2af8f5b6c09f9897fd797..0195c675ffc8cc1ebd0c44f51f0efa01a1d36a7d 100644 (file)
 #if wxUSE_DISPLAY
 
 #ifndef WX_PRECOMP
-   #include "wx/app.h"
-   #include "wx/dynarray.h"
-   #include "wx/frame.h"
+    #include "wx/msw/missing.h"
+    #include "wx/dynarray.h"
+    #include "wx/app.h"
+    #include "wx/frame.h"
 #endif
 
 #include "wx/dynload.h"
@@ -69,7 +70,7 @@
         #define MONITOR_DEFAULTTONULL       0x00000000
         #define MONITOR_DEFAULTTOPRIMARY    0x00000001
         #define MONITOR_DEFAULTTONEAREST    0x00000002
-        #define MONITORINFOF_PRIMARY        0x00000001        
+        #define MONITORINFOF_PRIMARY        0x00000001
         #define HMONITOR_DECLARED
     #endif
 #endif // !__WXWINCE__
@@ -457,7 +458,7 @@ wxRect wxDisplayImplWin32Base::GetClientArea() const
 
 wxString wxDisplayImplWin32Base::GetName() const
 {
-    if ( m_info.m_devName.IsEmpty() )
+    if ( m_info.m_devName.empty() )
         m_info.Initialize();
 
     return m_info.m_devName;