Changeset 186 for trunk/src


Ignore:
Timestamp:
Sep 14, 2009, 8:07:18 PM (16 years ago)
Author:
lpino
Message:
  • Some cleaning
File:
1 edited

Legend:

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

    r182 r186  
    161161        OS.GpiQueryFontMetrics (hps, FONTMETRICS.sizeof, fm);
    162162        computeWindowTextSize (hps, fm, sizeRect);
    163          if (this.hps == 0) OS.WinReleasePS (hps);
    164 
     163         if (this.hps == 0)
     164             OS.WinReleasePS (hps);
    165165        Point size;
    166166        if (layout != null) {
     
    211211            beginDeferWindowPos (parent, count);
    212212        }
    213 //@@TODO (lpino): What to do about this?
    214 //      if (parent.hdwp != 0) {
    215 //              int oldHdwp = parent.hdwp;
    216 //              parent.hdwp = 0;
    217 //              OS.EndDeferWindowPos (oldHdwp);
    218 //              int count = parent.getChildrenCount ();
    219 //              parent.hdwp = OS.BeginDeferWindowPos (count);
    220 //      }
    221213        RECTL rcl = new RECTL();
    222214        OS.WinQueryWindowRect (handle, rcl);
     
    292284
    293285int widgetStyle () {
    294         return super.widgetStyle () | OS.SS_GROUPBOX | OS.WS_TABSTOP;// | OS.WS_CLIPCHILDREN | OS.WS_CLIPSIBLINGS;
    295 }
    296 
     286        return super.widgetStyle () | OS.SS_GROUPBOX | OS.WS_TABSTOP | OS.SS_AUTOSIZE;
     287}
    297288PSZ windowClass () {
    298289        return GroupClass;
     
    329320        if (result != null) return result;
    330321//      /*
    331 //      * Feature in Windows.  The window proc for the group box
     322//      * Feature in OS/2.  The window proc for the group box
    332323//      * returns HT_TRANSPARENT indicating that mouse messages
    333324//      * should not be delivered to the receiver and any children.
     
    341332        return new MRESULT (code);
    342333}
    343 MRESULT WM_MOUSEMOVE (int mp1, int mp2) {
    344     System.out.println("Group::WM_MOUSEMOVE");
    345     return null;
    346 }
    347 }
     334
     335}
Note: See TracChangeset for help on using the changeset viewer.