2002/04/28 02:06:27
[org.ibex.core.git] / src / org / xwt / plat / Win32.java
index 33efa69..27ce98b 100644 (file)
@@ -28,7 +28,7 @@ public class Win32 extends GCJ {
     static int hand_cursor = 0;
     
     /** reverse lookup from hwnd to Win32Surface */
-    public static Hash hwndToWin32SurfaceMap = new Hash();
+    public static Hashtable hwndToWin32SurfaceMap = new Hashtable();
 
     /** lets us know that natInit() is finished */
     public static Semaphore messagePumpStarted = new Semaphore();
@@ -145,7 +145,11 @@ public class Win32 extends GCJ {
         public native void natInit(boolean framed);
         public Win32Surface(Box b, final boolean framed) {
             super(b);
+            if (Log.on) Log.log(this, "before, hwnd = " + hwnd);
+            if (Log.on) Log.log(this, "before, hdc = " + hdc);
             natInit(framed);
+            if (Log.on) Log.log(this, "after, hwnd = " + hwnd);
+            if (Log.on) Log.log(this, "after, hdc = " + hdc);
             hwndToWin32SurfaceMap.put(new Integer(hwnd), this);
         }