Changeset 118
- Timestamp:
- Jun 26, 2008, 6:02:28 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plugins/org.eclipse.swt/Eclipse SWT/pm/org/eclipse/swt/widgets/MenuItem.java
r113 r118 630 630 int rc = OS.WinSendMsg (hMenu, OS.MM_INSERTITEM, info, buffer); 631 631 // boolean success = OS.WinSendMsg (hMenu, OS.MM_SETITEM, OS.MPFROM2SHORT ((short)0, (short)OS.TRUE), info); 632 System.out.println("RC = " + rc);633 632 if(rc == OS.MIT_ERROR || rc == OS.MIT_MEMERROR) 634 633 error (SWT.ERROR_CANNOT_SET_MENU); … … 679 678 if ((style & SWT.SEPARATOR) != 0) return OS.MIS_SEPARATOR; 680 679 if ((style & SWT.CASCADE) != 0) return OS.MIS_SUBMENU; 681 return OS.MIS_TEXT | OS.MIS_OWNERDRAW;680 return OS.MIS_TEXT; 682 681 } 683 682 … … 696 695 return null; 697 696 } 698 699 //LRESULT wmDrawChild (int wParam, int lParam) { 697 //@@TODO(lpino) Finish the implementation of owner draw menu items 698 MRESULT wmDrawChild (int mp1, int mp2) { 699 System.out.println("MenuItem:wmDrawChild"); 700 OWNERITEM struct = new OWNERITEM(); 701 OS.objcpy(struct, mp2); 700 702 // DRAWITEMSTRUCT struct = new DRAWITEMSTRUCT (); 701 703 // OS.MoveMemory (struct, lParam, DRAWITEMSTRUCT.sizeof); … … 722 724 // } 723 725 // } 724 //return null;725 //}726 726 return null; 727 } 728 //@@TODO(lpino) Finish the implementation of owner draw menu items 727 729 MRESULT wmMeasureChild (int mp1, int mp2) { 728 730 System.out.println("MenuItem:wmMeasureChild");
Note:
See TracChangeset
for help on using the changeset viewer.