diff --git a/tests/notepadbehindwordpad.c b/tests/notepadbehindwordpad.c new file mode 100644 index 0000000..708ac2a --- /dev/null +++ b/tests/notepadbehindwordpad.c @@ -0,0 +1,18 @@ +#include +#include +#include + + + +int +main(int argc, char *argv[]) +{ + HWND notepad, wordpad; + + notepad = FindWindow("Notepad", NULL); + wordpad = FindWindow("WordPadClass", NULL); + + SetWindowPos(notepad, wordpad, 0, 0, 0, 0, SWP_NOACTIVATE | SWP_NOMOVE | SWP_NOSIZE); + + return 0; +} diff --git a/tests/notepadbehindwordpad.exe b/tests/notepadbehindwordpad.exe new file mode 100755 index 0000000..1540af7 Binary files /dev/null and b/tests/notepadbehindwordpad.exe differ