Changeset 202


Ignore:
Timestamp:
Oct 10, 2009, 7:09:17 PM (16 years ago)
Author:
lpino
Message:
  • Small changes
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  
    221221void createHandle () {
    222222        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");
    224225            handle = OS.WinCreateWindow (parent.frameHandle,    /* parent window */
    225226                                                        PSZ.getAtom (OS.WC_MENU),       /* class name */
     
    263264             
    264265        } 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");
    266268            handle = OS.WinCreateWindow (OS.HWND_DESKTOP,       /* parent window */
    267269                                                        PSZ.getAtom (OS.WC_MENU),       /* class name */
     
    366368        if(OS.WinSendMsg (handle, OS.MM_QUERYITEM,  OS.MPFROM2SHORT ((short)id, (short)OS.TRUE), info))
    367369            return parent.findMenuItem (info.id);
    368        
    369370        return null;
    370371}
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Shell.java

    r187 r202  
    10701070}
    10711071
    1072 //@@TODO(dmik): remove
    1073 //LRESULT WM_ACTIVATE (int wParam, int lParam) {
    1074 //      if (OS.IsPPC) {
    1075 //              /*
    1076 //              * Note: this does not work when we get WM_ACTIVATE prior
    1077 //              * 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, the
    1089 //      * IME composition window does not go away. This causes
    1090 //      * repaint issues.  The fix is to close the IME ourselves
    1091 //      * when the Shell is deactivated.
    1092 //      *
    1093 //      * Note.  When the Shell is reactivated, the text in the
    1094 //      * 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 
    11071072//@@TODO (dmik): need?
    11081073//LRESULT WM_CLOSE (int wParam, int lParam) {
Note: See TracChangeset for help on using the changeset viewer.