Changeset 118


Ignore:
Timestamp:
Jun 26, 2008, 6:02:28 PM (17 years ago)
Author:
lpino
Message:

(MenuItem.java) - Partially implemented the WM_DRAWITEM and WM_MEASUREITEM messages

File:
1 edited

Legend:

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

    r113 r118  
    630630        int rc = OS.WinSendMsg (hMenu, OS.MM_INSERTITEM,  info, buffer);
    631631//        boolean success = OS.WinSendMsg (hMenu, OS.MM_SETITEM,  OS.MPFROM2SHORT ((short)0, (short)OS.TRUE), info);
    632         System.out.println("RC = " + rc);
    633632        if(rc == OS.MIT_ERROR || rc == OS.MIT_MEMERROR)
    634633            error (SWT.ERROR_CANNOT_SET_MENU);
     
    679678        if ((style & SWT.SEPARATOR) != 0) return OS.MIS_SEPARATOR;
    680679        if ((style & SWT.CASCADE) != 0) return OS.MIS_SUBMENU;
    681         return OS.MIS_TEXT | OS.MIS_OWNERDRAW;
     680        return OS.MIS_TEXT;
    682681}
    683682
     
    696695        return null;
    697696}
    698 
    699 //LRESULT wmDrawChild (int wParam, int lParam) {
     697//@@TODO(lpino) Finish the implementation of owner draw menu items
     698MRESULT wmDrawChild (int mp1, int mp2) {
     699        System.out.println("MenuItem:wmDrawChild");
     700        OWNERITEM struct = new OWNERITEM();
     701        OS.objcpy(struct, mp2);
    700702//      DRAWITEMSTRUCT struct = new DRAWITEMSTRUCT ();
    701703//      OS.MoveMemory (struct, lParam, DRAWITEMSTRUCT.sizeof);
     
    722724//              }
    723725//      }
    724 //      return null;
    725 //}
    726 
     726        return null;
     727}
     728//@@TODO(lpino) Finish the implementation of owner draw menu items
    727729MRESULT wmMeasureChild (int mp1, int mp2) {
    728730    System.out.println("MenuItem:wmMeasureChild");
Note: See TracChangeset for help on using the changeset viewer.