- Timestamp:
- Jun 24, 2008, 10:50:47 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Control.java
r106 r108 472 472 473 473 //@@TODO (dmik): debug code, remove when no more necessary 474 System.out.println (475 "Control.createHandle(): Window has been created:\n" +476 " hwnd = " + Integer.toHexString (handle) + "\n" +477 " hwnd.parent = hwnd.owner = " + Integer.toHexString (parent.handle) + "\n" +478 " class = " + windowClass() + "\n" +479 " style = " + Integer.toHexString (widgetStyle())480 );474 //System.out.println ( 475 // "Control.createHandle(): Window has been created:\n" + 476 // " hwnd = " + Integer.toHexString (handle) + "\n" + 477 // " hwnd.parent = hwnd.owner = " + Integer.toHexString (parent.handle) + "\n" + 478 // " class = " + windowClass() + "\n" + 479 // " style = " + Integer.toHexString (widgetStyle()) 480 //); 481 481 482 482 //@@TODO(dmik): DBCS handling? … … 3103 3103 //@@TODO(lpino) First check if this validation applies to OS/2 implementation and then validate using the coordinates of the mouse 3104 3104 // if (mp2 != handle) return null; 3105 // int parentHandle = OS.WinQueryWindow(menu.handle, OS.QW_PARENT);3106 System.out.println("Control:WM_CONTEXTMENU - PARENTHANDLE = " + Integer.toHexString(handle));3107 System.out.println("Control:WM_CONTEXTMENU - SHORT1FROMMP = " + OS.SHORT1FROMMP(mp1));3108 System.out.println("Control:WM_CONTEXTMENU - SHORT2FROMMP = " + OS.SHORT2FROMMP(mp1));3109 3105 short flOptions = OS.PU_HCONSTRAIN | OS.PU_VCONSTRAIN | OS.PU_KEYBOARD | OS.PU_MOUSEBUTTON1; 3110 boolean rc = OS.WinPopupMenu(handle, handle, menu.handle, 0, 150, OS.SHORT1FROMMP(mp1), flOptions);3106 boolean rc = OS.WinPopupMenu(handle, handle, menu.handle, OS.SHORT1FROMMP(mp1), OS.SHORT2FROMMP(mp1), 0, flOptions); 3111 3107 return MRESULT.TRUE; 3112 3108 }
Note:
See TracChangeset
for help on using the changeset viewer.