- Timestamp:
- Dec 9, 2009, 1:20:03 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
r212 r237 1027 1027 } 1028 1028 1029 / //**1030 //* Sets the receiver's menu bar to the argument, which1031 //* may be null.1032 //*1033 //* @param menu the new menu bar1034 //*1035 //* @exception IllegalArgumentException <ul>1036 //* <li>ERROR_INVALID_ARGUMENT - if the menu has been disposed</li>1037 //* <li>ERROR_INVALID_PARENT - if the menu is not in the same widget tree</li>1038 //* </ul>1039 //* @exception SWTException <ul>1040 //* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>1041 //* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>1042 //* </ul>1043 //*/1029 /** 1030 * Sets the receiver's menu bar to the argument, which 1031 * may be null. 1032 * 1033 * @param menu the new menu bar 1034 * 1035 * @exception IllegalArgumentException <ul> 1036 * <li>ERROR_INVALID_ARGUMENT - if the menu has been disposed</li> 1037 * <li>ERROR_INVALID_PARENT - if the menu is not in the same widget tree</li> 1038 * </ul> 1039 * @exception SWTException <ul> 1040 * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> 1041 * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> 1042 * </ul> 1043 */ 1044 1044 public void setMenuBar (Menu menu) { 1045 1045 checkWidget (); … … 1054 1054 if (menuBar != null) 1055 1055 hMenu = menuBar.handle; 1056 // OS.SetMenu (handle, hMenu);1057 1056 OS.WinSendMsg (frameHandle, OS.WM_UPDATEFRAME, OS.FCF_MENU, 0); 1058 1057 destroyAcceleratorTable (); … … 1414 1413 1415 1414 MRESULT FRAME_WM_ACTIVATE (int mp1, int mp2) { 1415 int result = callWindowFrameProc (OS.WM_ACTIVATE, mp1, mp2); 1416 1416 if ((OS.SHORT1FROMMP (mp1)) == 0) { 1417 1417 /* … … 1523 1523 } 1524 1524 MRESULT WM_SETFOCUS (int mp1, int mp2) { 1525 // System.out.println("Decorations::WM_SETFOCUS -> HANDLE = " + Integer.toHexString(handle)); 1525 1526 MRESULT result = super.WM_SETFOCUS (mp1, mp2); 1526 1527 boolean gotFocus = OS.SHORT1FROMMP (mp2) > 0;
Note:
See TracChangeset
for help on using the changeset viewer.