X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a02a5cfcf33bb2c0edae246c1b19e286bf86d422..b2edb8f3c524f302b727386bb0a694c44fb57e7d:/src/msw/uiaction.cpp?ds=inline diff --git a/src/msw/uiaction.cpp b/src/msw/uiaction.cpp index 6bbbf1abdc..d421b9a18f 100644 --- a/src/msw/uiaction.cpp +++ b/src/msw/uiaction.cpp @@ -11,13 +11,11 @@ #include "wx/wxprec.h" -#ifndef WX_PRECOMP -#include "wx/defs.h" -#endif +#if wxUSE_UIACTIONSIMULATOR #include "wx/uiaction.h" -#include +#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