Changeset 211 for trunk/src


Ignore:
Timestamp:
Oct 23, 2009, 8:48:07 PM (16 years ago)
Author:
lpino
Message:
  • Eliminate WM_ERASEBACKGROUND processing from this point
  • BeginPaint in Win32 includes a flag that indicates when to erase a background on a particular window. That feature doesn't exist in PM
File:
1 edited

Legend:

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

    r191 r211  
    510510//@@TODO(dmik): think of it, not sure that it is processed in the right way here...
    511511//  And may be better to move this code to Decorations class...
    512 MRESULT WM_ERASEBACKGROUND (int mp1, int mp2) {
    513 //@@TODO (lpino): Remove log
    514 //    System.out.println("Composite::WM_ERASEBACKGROUND -> HANDLE = " + Integer.toHexString(handle));
    515     if ((state & CANVAS) != 0) {
    516         return MRESULT.FALSE;
    517 //        return super.WM_ERASEBACKGROUND (mp1, mp2);
    518     }
    519     RECTL rcl = new RECTL();
    520     OS.objcpy (rcl, mp2);
    521     drawBackground (mp1, rcl);
    522     return MRESULT.TRUE;
    523 }
     512 // MRESULT WM_ERASEBACKGROUND (int mp1, int mp2) {
     513 // //@@TODO (lpino): Remove log
     514 // System.out.println("Composite::WM_ERASEBACKGROUND -> HANDLE = " + Integer.toHexString(handle));
     515     // if ((state & CANVAS) != 0) {
     516        // // System.out.println("Composite::WM_ERASEBACKGROUND -> HANDLE = " + Integer.toHexString(handle));
     517         // return MRESULT.FALSE;
     518 // //        return super.WM_ERASEBACKGROUND (mp1, mp2);
     519    // }
     520    // System.out.println("Composite::WM_ERASEBACKGROUND -> HANDLE = " + Integer.toHexString(handle));
     521    // RECTL rcl = new RECTL();
     522    // OS.objcpy (rcl, mp2);
     523    // drawBackground (mp1, rcl);
     524    // return MRESULT.FALSE;
     525// }
    524526
    525527MRESULT WM_QUERYDLGCODE (int mp1, int mp2) {
     
    616618
    617619MRESULT WM_PAINT (int mp1, int mp2) {
     620//    System.out.println("Composite::WM_PAINT -> HANDLE  =  " + Integer.toHexString(handle));
    618621    if ((state & CANVAS) == 0) {
    619                 return super.WM_PAINT (mp1, mp2);
     622            return super.WM_PAINT (mp1, mp2);
    620623    }
    621624
     
    805808}
    806809
     810MRESULT WM_ADJUSTWINDOWPOS (int mp1, int mp2) {
     811        System.out.println("Composite::WM_ADJUSTWINDOWPOS -> HANDLE  =  " + Integer.toHexString(handle));
     812        return null;
     813}
     814
    807815//LRESULT WM_SYSCOLORCHANGE (int wParam, int lParam) {
    808816//      Control [] children = _getChildren ();
Note: See TracChangeset for help on using the changeset viewer.