- Timestamp:
- May 22, 2009, 6:26:52 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/Decorations.java
r138 r142 1146 1146 OS.WinSendMsg(hSubMenu, OS.MM_REMOVEITEM, OS.MPFROM2SHORT((short)OS.SC_RESTORE , (short)OS.FALSE), 0); 1147 1147 } 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); 1152 1155 // MENUITEMINFO info = new MENUITEMINFO (); 1153 1156 // info.cbSize = MENUITEMINFO.sizeof; … … 1166 1169 // } 1167 1170 // } 1168 }1171 // } 1169 1172 } 1170 1173 … … 1523 1526 //} 1524 1527 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.