]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/uiaction.cpp
Add support for IEC and SI size units to wxFileName::GetHumanReadableSize().
[wxWidgets.git] / src / msw / uiaction.cpp
index 6bbbf1abdc1f17675e7ce1afe6ea4d1de4c4a4b6..d421b9a18f993515499029e3dd6f9f6e75c562e3 100644 (file)
 
 #include "wx/wxprec.h"
 
 
 #include "wx/wxprec.h"
 
-#ifndef WX_PRECOMP
-#include "wx/defs.h"
-#endif
+#if wxUSE_UIACTIONSIMULATOR
 
 #include "wx/uiaction.h"
 
 
 #include "wx/uiaction.h"
 
-#include <windows.h>
+#include "wx/msw/wrapwin.h"
 
 DWORD EventTypeForMouseButton(int button, bool isDown)
 {
 
 DWORD EventTypeForMouseButton(int button, bool isDown)
 {
@@ -38,7 +36,7 @@ DWORD EventTypeForMouseButton(int button, bool isDown)
                 return MOUSEEVENTF_MIDDLEDOWN;
             else
                 return MOUSEEVENTF_MIDDLEUP;
                 return MOUSEEVENTF_MIDDLEDOWN;
             else
                 return MOUSEEVENTF_MIDDLEUP;
-            
+
         default:
             wxFAIL_MSG("Unsupported button passed in.");
             return -1;
         default:
             wxFAIL_MSG("Unsupported button passed in.");
             return -1;
@@ -54,7 +52,7 @@ bool wxUIActionSimulator::MouseDown(int button)
 }
 
 bool wxUIActionSimulator::MouseMove(long x, long y)
 }
 
 bool wxUIActionSimulator::MouseMove(long x, long y)
-{   
+{
     mouse_event(MOUSEEVENTF_MOVE, x, y, 0, 0);
     return true;
 }
     mouse_event(MOUSEEVENTF_MOVE, x, y, 0, 0);
     return true;
 }
@@ -76,3 +74,4 @@ bool wxUIActionSimulator::Key(int keycode, bool isDown, bool shiftDown, bool cmd
     return true;
 }
 
     return true;
 }
 
+#endif // wxUSE_UIACTIONSIMULATOR