Changeset 142 for trunk/src


Ignore:
Timestamp:
May 22, 2009, 6:26:52 PM (16 years ago)
Author:
lpino
Message:

setSystemMenu initial implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Decorations.java

    r138 r142  
    11461146                OS.WinSendMsg(hSubMenu, OS.MM_REMOVEITEM, OS.MPFROM2SHORT((short)OS.SC_RESTORE  , (short)OS.FALSE), 0);
    11471147        }
    1148 
    1149         int newCount = OS.WinSendMsg (hSubMenu, OS.MM_QUERYITEMCOUNT,  0, 0);
    1150         if ((style & SWT.CLOSE) == 0 || newCount != oldCount) {
    1151                 OS.WinSendMsg(hSubMenu, OS.MM_REMOVEITEM, OS.MPFROM2SHORT((short)OS.SC_TASKMANAGER  , (short)OS.FALSE), 0);
     1148        if ((style & SWT.CLOSE) == 0) {
     1149                OS.WinSendMsg(hSubMenu, OS.MM_REMOVEITEM, OS.MPFROM2SHORT((short)OS.SC_CLOSE  , (short)OS.FALSE), 0);
     1150        }
     1151
     1152    int newCount = OS.WinSendMsg (hSubMenu, OS.MM_QUERYITEMCOUNT,  0, 0);
     1153//    if ((style & SWT.CLOSE) == 0 || newCount != oldCount) {   
     1154//              OS.WinSendMsg(hSubMenu, OS.MM_REMOVEITEM, OS.MPFROM2SHORT((short)OS.SC_TASKMANAGER  , (short)OS.FALSE), 0);
    11521155//              MENUITEMINFO info = new MENUITEMINFO ();
    11531156//              info.cbSize = MENUITEMINFO.sizeof;
     
    11661169//                      }
    11671170//              }
    1168         }
     1171//      }
    11691172}
    11701173
     
    15231526//}
    15241527
    1525 //@@TODO (dmik): guess remove
    1526 //LRESULT WM_WINDOWPOSCHANGING (int wParam, int lParam) {
    1527 //      LRESULT result = super.WM_WINDOWPOSCHANGING (wParam,lParam);
    1528 //      if (result != null) return result;
    1529 //      Display display = getDisplay ();
    1530 //      if (display.lockActiveWindow) {
    1531 //              WINDOWPOS lpwp = new WINDOWPOS ();
    1532 //              OS.MoveMemory (lpwp, lParam, WINDOWPOS.sizeof);
    1533 //              lpwp.flags |= OS.SWP_NOZORDER;
    1534 //              OS.MoveMemory (lParam, lpwp, WINDOWPOS.sizeof);
    1535 //      }
    1536 //      return result;
    1537 //}
    1538 
    1539 }
     1528}
Note: See TracChangeset for help on using the changeset viewer.