]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/uiaction.cpp
Implement support for gradient stops for OS X.
[wxWidgets.git] / src / msw / uiaction.cpp
index 6bbbf1abdc1f17675e7ce1afe6ea4d1de4c4a4b6..d421b9a18f993515499029e3dd6f9f6e75c562e3 100644 (file)
 
 #include "wx/wxprec.h"
 
-#ifndef WX_PRECOMP
-#include "wx/defs.h"
-#endif
+#if wxUSE_UIACTIONSIMULATOR
 
 #include "wx/uiaction.h"
 
-#include <windows.h>
+#include "wx/msw/wrapwin.h"
 
 DWORD EventTypeForMouseButton(int button, bool isDown)
 {
@@ -38,7 +36,7 @@ DWORD EventTypeForMouseButton(int button, bool isDown)
                 return MOUSEEVENTF_MIDDLEDOWN;
             else
                 return MOUSEEVENTF_MIDDLEUP;
-            
+
         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)
-{   
+{
     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;
 }
 
+#endif // wxUSE_UIACTIONSIMULATOR