GDK supports two different types of native window ID, pointers and ints (GDK_NATIVE_WINDOW_POINTER indicates if pointers are used). On windows the closest thing to a X11 window ID a HWND is a void *, so GDK used a pointer (yes windows have IDs too but they are really just a user property).
The code in Graphics.UI.Gtk.General.Structs already seems to be set up to handle both cases. NativeWindowID can have two different types depending on GDK_NATIVE_WINDOW_POINTER. The sample code you sent me to test on windows assumed the native ID would be an integer.... http://paste2.org/get/932932 By changing putStrLn $ "GdkWindow Id : " ++ show (wid :: Int) to putStrLn $ "GdkWindow Id : " ++ show wid I get the output like this... $ ./test.exe GdkWindow Id : 0x000404dc I have checked the value (using Microsoft Spy++) and it is indeed the correct HWND for window value. Hamish ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel