Skip to content


Subversion checkout URL

You can clone with
Download ZIP


added setforeground window #9

wants to merge 1 commit into from

3 participants


No description provided.


Looks very reasonable to me.


For the record, this breaks the ./validate build on 64bit because -Werror trips up, since stdcall isn't supported on x86_64 Windows. I'll fix it, though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 5, 2013
  1. @npezolano

    added setforegroundwindow

    npezolano committed
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 0 deletions.
  1. +9 −0 Graphics/Win32/Window.hsc
9 Graphics/Win32/Window.hsc
@@ -290,6 +290,15 @@ foreign import WINDOWS_CCONV "windows.h SetWindowTextW"
c_SetWindowText :: HWND -> LPCTSTR -> IO Bool
+-- Setting Window to Foreground
+foreign import stdcall safe "windows.h SetForegroundWindow"
+ c_setForegroundWindow :: HWND -> IO Bool
+setForegroundWindow :: HWND -> IO Bool
+setForegroundWindow = c_setForegroundWindow
-- Paint struct
Something went wrong with that request. Please try again.