Changeset 202
- Timestamp:
- Oct 10, 2009, 7:09:17 PM (16 years ago)
- Location:
- trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Menu.java
r114 r202 221 221 void createHandle () { 222 222 if ((style & SWT.BAR) != 0) { 223 System.out.println("Menu:createHandle: Menu Bar"); 223 //@@TODO (lpino): debug code, remove when no more necessary 224 // System.out.println("Menu:createHandle: Menu Bar"); 224 225 handle = OS.WinCreateWindow (parent.frameHandle, /* parent window */ 225 226 PSZ.getAtom (OS.WC_MENU), /* class name */ … … 263 264 264 265 } else if ((style & SWT.DROP_DOWN) != 0) { 265 System.out.println("Menu:createHandle: Menu DropDown"); 266 //@@TODO (lpino): debug code, remove when no more necessary 267 // System.out.println("Menu:createHandle: Menu DropDown"); 266 268 handle = OS.WinCreateWindow (OS.HWND_DESKTOP, /* parent window */ 267 269 PSZ.getAtom (OS.WC_MENU), /* class name */ … … 366 368 if(OS.WinSendMsg (handle, OS.MM_QUERYITEM, OS.MPFROM2SHORT ((short)id, (short)OS.TRUE), info)) 367 369 return parent.findMenuItem (info.id); 368 369 370 return null; 370 371 } -
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Shell.java
r187 r202 1070 1070 } 1071 1071 1072 //@@TODO(dmik): remove1073 //LRESULT WM_ACTIVATE (int wParam, int lParam) {1074 // if (OS.IsPPC) {1075 // /*1076 // * Note: this does not work when we get WM_ACTIVATE prior1077 // * to adding a listener.1078 // */1079 // if (hooks (SWT.HardKeyDown) || hooks (SWT.HardKeyUp)) {1080 // int fActive = wParam & 0xFFFF;1081 // int hwnd = fActive != 0 ? handle : 0;1082 // for (int bVk=OS.VK_APP1; bVk<=OS.VK_APP6; bVk++) {1083 // OS.SHSetAppKeyWndAssoc ((byte) bVk, hwnd);1084 // }1085 // }1086 // }1087 // /*1088 // * Bug in Windows XP. When a Shell is deactivated, the1089 // * IME composition window does not go away. This causes1090 // * repaint issues. The fix is to close the IME ourselves1091 // * when the Shell is deactivated.1092 // *1093 // * Note. When the Shell is reactivated, the text in the1094 // * composition window has been lost.1095 // */1096 // if ((OS.WIN32_MAJOR << 16 | OS.WIN32_MINOR) >= (5 << 16 | 1)) {1097 // if ((wParam & 0xFFFF) == 0 && OS.IsDBLocale && hIMC != 0) {1098 // OS.ImmSetOpenStatus (hIMC, false);1099 // }1100 // }1101 //1102 // LRESULT result = super.WM_ACTIVATE (wParam, lParam);1103 // if (parent != null) return LRESULT.ZERO;1104 // return result;1105 //}1106 1107 1072 //@@TODO (dmik): need? 1108 1073 //LRESULT WM_CLOSE (int wParam, int lParam) {
Note:
See TracChangeset
for help on using the changeset viewer.