Changeset 196 for trunk/src


Ignore:
Timestamp:
Oct 10, 2009, 7:00:07 PM (16 years ago)
Author:
lpino
Message:
  • New code implemented, fixed the sizing and many more things
File:
1 edited

Legend:

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

    r112 r196  
    9898        if (result == OS.LIT_MEMERROR) error (SWT.ERROR_ITEM_NOT_ADDED);
    9999        if (result == OS.LIT_ERROR) error (SWT.ERROR_ITEM_NOT_ADDED);
    100 //      if ((style & SWT.H_SCROLL) != 0) setScrollWidth (buffer, true);
     100        if ((style & SWT.H_SCROLL) != 0) setScrollWidth (buffer, true);
    101101}
    102102/**
     
    141141                }
    142142        }
    143 //      if ((style & SWT.H_SCROLL) != 0) setScrollWidth (buffer, true);
     143        if ((style & SWT.H_SCROLL) != 0) setScrollWidth (buffer, true);
    144144}
    145145
     
    193193//        System.out.println("Ancho = " + OS.SHORT2FROMMP (rc));
    194194       
    195 //      int itemHeight = OS.SendMessage (handle, OS.LB_GETITEMHEIGHT, 0, 0);
    196 //      int width = 0, height = count * itemHeight;
    197 //      if ((style & SWT.H_SCROLL) != 0) {
    198 //              width = OS.SendMessage (handle, OS.LB_GETHORIZONTALEXTENT, 0, 0);
    199 //      } else {
    200 //              int newFont, oldFont = 0;
    201 //              int hDC = OS.GetDC (handle);
    202 //              newFont = OS.SendMessage (handle, OS.WM_GETFONT, 0, 0);
    203 //              if (newFont != 0) oldFont = OS.SelectObject (hDC, newFont);
    204 //              RECT rect = new RECT ();
    205 //              int flags = OS.DT_CALCRECT | OS.DT_SINGLELINE | OS.DT_NOPREFIX;
    206 //              int cp = getCodePage ();
    207 //              TCHAR buffer = new TCHAR (cp, 64 + 1);
    208 //              for (int i=0; i<count; i++) {
    209 //                      int length = OS.SendMessage (handle, OS.LB_GETTEXTLEN, i, 0);
    210 //                      if (length != OS.LB_ERR) {
    211 //                              if (length + 1 > buffer.length ()) {
    212 //                                      buffer = new TCHAR (cp, length + 1);
    213 //                              }
    214 //                              int result = OS.SendMessage (handle, OS.LB_GETTEXT, i, buffer);
    215 //                              if (result != OS.LB_ERR) {
    216 //                                      OS.DrawText (hDC, buffer, length, rect, flags);
    217 //                                      width = Math.max (width, rect.right - rect.left);
    218 //                              }
    219 //                      }
    220 //              }       
    221 //              if (newFont != 0) OS.SelectObject (hDC, oldFont);
    222 //              OS.ReleaseDC (handle, hDC);
    223 //      }
    224 //      if (width == 0) width = DEFAULT_WIDTH;
    225 //      if (height == 0) height = DEFAULT_HEIGHT;
    226 //      if (wHint != SWT.DEFAULT) width = wHint;
    227 //      if (hHint != SWT.DEFAULT) height = hHint;
    228 //      int border = getBorderWidth ();
    229 //      width += border * 2 + 3;
    230 //      height += border * 2;
    231 //      if ((style & SWT.V_SCROLL) != 0) {
    232 //              width += OS.GetSystemMetrics (OS.SM_CXVSCROLL);
    233 //      }
    234 //      if ((style & SWT.H_SCROLL) != 0) {
    235 //              height += OS.GetSystemMetrics (OS.SM_CYHSCROLL);
    236 //      }
    237         return new Point (0, 0);
     195        int itemHeight = getItemHeight();
     196        int width = 0, height = count * itemHeight;
     197        int hps = this.hps;
     198        if (hps == 0) hps = OS.WinGetPS (handle);
     199        RECTL rcl = new RECTL();
     200        int flags = OS.DT_QUERYEXTENT | OS.DT_TEXTATTRS;
     201        PSZ buffer = new PSZ(64+1);
     202        int[] pnts = new int [OS.TXTBOX_COUNT * 2];
     203        for (int i=0; i<count; i++) {
     204                int length = OS.WinSendMsg (handle, OS.LM_QUERYITEMTEXTLENGTH,(short)i, 0);
     205                if (length != OS.LIT_ERROR) {
     206                        if (length + 1 > buffer.length()) {
     207                                buffer = new PSZ( length + 1);
     208                        }
     209                        int result = OS.WinSendMsg (handle, OS.LM_QUERYITEMTEXT, OS.MPFROM2SHORT((short)i,(short)length), buffer);
     210                        if (result != 0) {
     211                                OS.GpiQueryTextBox (hps, length, buffer.getBytes(), OS.TXTBOX_COUNT, pnts);
     212                                width = Math.max (width, pnts[4] - pnts[0]);
     213//                              System.out.println("List::computeSize -> pto 1 = " + pnts[0] + "," + pnts[1]);
     214//                              System.out.println("List::computeSize -> pto 2 = " + pnts[2] + "," + pnts[3]);
     215//                              System.out.println("List::computeSize -> pto 3 = " + pnts[4] + "," + pnts[5]);
     216//                              System.out.println("List::computeSize -> pto 4 = " + pnts[6] + "," + pnts[7]);
     217
     218                        }
     219                }
     220        }       
     221        if (this.hps == 0) OS.WinReleasePS (hps);
     222        if (width == 0) width = DEFAULT_WIDTH;
     223        if (height == 0) height = DEFAULT_HEIGHT;
     224        if (wHint != SWT.DEFAULT) width = wHint;
     225        if (hHint != SWT.DEFAULT) height = hHint;
     226        int border = getBorderWidth ();
     227        width += border * 2 + 3;
     228        height += border * 2;
     229        if ((style & SWT.V_SCROLL) != 0) {
     230        System.out.println("List::computeSize -> width antes de = " + width);
     231                width += OS.WinQuerySysValue (handle, OS.SV_CXVSCROLL);
     232        System.out.println("List::computeSize -> width despues de = " + width);
     233        }
     234        if ((style & SWT.H_SCROLL) != 0) {
     235                height += OS.WinQuerySysValue (handle, OS.SV_CYHSCROLL);
     236        }
     237        return new Point (width, height);
    238238}
    239239
     
    697697        }
    698698
    699 //      /* Use LM_SEARCHSTRING to search for the item */
     699        /* Use LM_SEARCHSTRING to search for the item */
    700700        int count = OS.WinSendMsg (handle, OS.LM_QUERYITEMCOUNT, 0, 0);
    701701        if (!((0 <= start) && (start < count))) return -1;
     
    751751        int count =  OS.WinSendMsg (handle, OS.LM_QUERYITEMCOUNT, 0, 0);
    752752        int topIndex =  OS.WinSendMsg (handle, OS.LM_QUERYTOPINDEX, 0, 0);
     753        int newWidth = 0;
     754        int hps = this.hps;
     755        RECTL rcl = null;
    753756//      RECT rect = null;
    754757//      int hDC = 0, oldFont = 0, newFont = 0, newWidth = 0;
    755 //      if ((style & SWT.H_SCROLL) != 0) {
    756 //              rect = new RECT ();
     758        if ((style & SWT.H_SCROLL) != 0) {
     759                rcl = new RECTL ();
     760                if (hps == 0) hps = OS.WinGetPS (handle);
    757761//              hDC = OS.GetDC (handle);
    758762//              newFont = OS.SendMessage (handle, OS.WM_GETFONT, 0, 0);
    759763//              if (newFont != 0) oldFont = OS.SelectObject (hDC, newFont);
    760 //      }
     764        }
    761765//      int cp = getCodePage ();
    762766        int i = 0, topCount = 0, last = -1;
     
    764768                int index = newIndices [i];
    765769                if (index != last || i == 0) {
    766 //                      TCHAR buffer = null;
    767 //                      if ((style & SWT.H_SCROLL) != 0) {
    768 //                              int length = OS.SendMessage (handle, OS.LB_GETTEXTLEN, index, 0);
    769 //                              if (length == OS.LB_ERR) break;
    770 //                              buffer = new TCHAR (cp, length + 1);
    771 //                              int result = OS.SendMessage (handle, OS.LB_GETTEXT, index, buffer);
    772 //                              if (result == OS.LB_ERR) break;
    773 //                      }
     770                        PSZ buffer = null;
     771                        if ((style & SWT.H_SCROLL) != 0) {
     772                                int length = OS.WinSendMsg (handle, OS.LM_QUERYITEMTEXTLENGTH,(short)index, 0);
     773                                if (length == OS.LIT_ERROR) break;
     774                                buffer = new PSZ (length + 1);
     775                                int result = OS.WinSendMsg (handle, OS.LM_QUERYITEMTEXT, OS.MPFROM2SHORT((short)index,(short)length), buffer);
     776                                if (result == 0) break;
     777                        }
    774778                        int result =  OS.WinSendMsg (handle, OS.LM_DELETEITEM, index, 0);
    775779//                      if (result == OS.LB_ERR) break;
    776 //                      if ((style & SWT.H_SCROLL) != 0) {
    777 //                              int flags = OS.DT_CALCRECT | OS.DT_SINGLELINE | OS.DT_NOPREFIX;
    778 //                              OS.DrawText (hDC, buffer, -1, rect, flags);
    779 //                              newWidth = Math.max (newWidth, rect.right - rect.left);
    780 //                      }
     780                        if ((style & SWT.H_SCROLL) != 0) {
     781                                int flags = OS.DT_QUERYEXTENT | OS.DT_TEXTATTRS;
     782                                OS.WinDrawText (hps, -1, buffer.getBytes(), rcl, 0, 0, flags);
     783                                newWidth = Math.max (newWidth, rcl.xRight - rcl.xLeft);
     784                        }
    781785                        if (index < topIndex) topCount++;
    782786                        last = index;
     
    784788                i++;
    785789        }
    786 //      if ((style & SWT.H_SCROLL) != 0) {
     790        if ((style & SWT.H_SCROLL) != 0) {
    787791//              if (newFont != 0) OS.SelectObject (hDC, oldFont);
    788 //              OS.ReleaseDC (handle, hDC);
    789 //              setScrollWidth (newWidth, false);
    790 //      }
     792                if (this.hps == 0) OS.WinReleasePS (hps);
     793                setScrollWidth (newWidth, false);
     794        }
    791795        if (topCount > 0) {
    792796                topIndex -= topCount;
     
    834838                error (SWT.ERROR_INVALID_RANGE);
    835839        }
    836 //@@TODO(lpino):
    837 //      if ((style & SWT.H_SCROLL) != 0) setScrollWidth (buffer, false);
     840        if ((style & SWT.H_SCROLL) != 0) setScrollWidth (buffer, false);
    838841        if (index < topIndex) {
    839842                OS.WinSendMsg (handle, OS.LM_SETTOPINDEX, (short)(topIndex-1), 0);
     
    865868        int count = OS.WinSendMsg (handle, OS.LM_QUERYITEMCOUNT, 0, 0);
    866869        int topIndex = OS.WinSendMsg (handle, OS.LM_QUERYTOPINDEX, 0, 0);
    867 //      RECT rect = null;
    868 //      int hDC = 0, oldFont = 0, newFont = 0, newWidth = 0;
    869 //      if ((style & SWT.H_SCROLL) != 0) {
    870 //              rect = new RECT ();
    871 //              hDC = OS.GetDC (handle);
    872 //              newFont = OS.SendMessage (handle, OS.WM_GETFONT, 0, 0);
    873 //              if (newFont != 0) oldFont = OS.SelectObject (hDC, newFont);
    874 //      }
    875 //      int cp = getCodePage ();
     870        int newWidth = 0;
     871        int hps = this.hps;
     872        RECTL rcl = null;
     873        if ((style & SWT.H_SCROLL) != 0) {
     874                rcl = new RECTL ();
     875                if (hps == 0) hps = OS.WinGetPS (handle);
     876        }
    876877        int index = start;
    877 //      int flags = OS.DT_CALCRECT | OS.DT_SINGLELINE | OS.DT_NOPREFIX;
     878        int flags = OS.DT_QUERYEXTENT | OS.DT_TEXTATTRS;
    878879        while (index <= end) {
    879880                PSZ buffer = null;
     
    887888                int result =OS.WinSendMsg (handle, OS.LM_DELETEITEM,(short) start, 0);
    888889                if (result <=0) break;
    889 //              if ((style & SWT.H_SCROLL) != 0) {
    890 //                      OS.DrawText (hDC, buffer, -1, rect, flags);
    891 //                      newWidth = Math.max (newWidth, rect.right - rect.left);
    892 //              }
     890                if ((style & SWT.H_SCROLL) != 0) {
     891                        OS.WinDrawText (hps, -1, buffer.getBytes(), rcl, 0, 0, flags);
     892                        newWidth = Math.max (newWidth, rcl.xRight - rcl.xLeft);
     893                }
    893894                index++;
    894895        }
    895 //      if ((style & SWT.H_SCROLL) != 0) {
    896 //              if (newFont != 0) OS.SelectObject (hDC, oldFont);
    897 //              OS.ReleaseDC (handle, hDC);
    898 //              setScrollWidth (newWidth, false);
    899 //      }
     896        if ((style & SWT.H_SCROLL) != 0) {
     897                if (this.hps == 0) OS.WinReleasePS (hps);
     898                setScrollWidth (newWidth, false);
     899        }
    900900        if (end < topIndex) {
    901901                topIndex -= end - start + 1;
     
    945945        checkWidget ();
    946946        OS.WinSendMsg (handle, OS.LM_DELETEALL, 0, 0);
    947 //@@TODO(lpino):
    948 //      if ((style & SWT.H_SCROLL) != 0) {
     947        if ((style & SWT.H_SCROLL) != 0) {
    949948//              OS.SendMessage (handle, OS.LB_SETHORIZONTALEXTENT, 0, 0);
    950 //      }
     949        }
    951950}
    952951
     
    11031102}
    11041103
    1105 //void setBounds (int x, int y, int width, int height, int flags) {
     1104void setBounds (int x, int y, int width, int height, int flags) {
    11061105//      /*
    11071106//      * Bug in Windows.  If the receiver is scrolled horizontally
     
    11131112//              return;
    11141113//      }
    1115 //      RECT rect = new RECT ();
    1116 //      OS.GetWindowRect (handle, rect);
    1117 //      super.setBounds (x, y, width, height, flags);
    1118 //      if (((rect.right - rect.left) == width) || ((rect.bottom - rect.top) == height)) return;
     1114        RECTL rcl = new RECTL ();
     1115        OS.WinQueryWindowRect (handle, rcl);
     1116        super.setBounds (x, y, width, height, flags);
     1117        if (((rcl.xRight - rcl.xLeft) == width) || ((rcl.yTop - rcl.yBottom) == height)) return;
    11191118//      SCROLLINFO info = new SCROLLINFO ();
    11201119//      info.cbSize = SCROLLINFO.sizeof;
     
    11221121//      if (!OS.GetScrollInfo (handle, OS.SB_HORZ, info)) return;
    11231122//      if (info.nPos != 0) OS.InvalidateRect (handle, null, true);
    1124 //}
     1123}
    11251124
    11261125void setFocusIndex (int index) {
     
    11321131        super.setFont (font);
    11331132//@@TODO(lpino): Implement setScrollWidth ()
    1134 //        if ((style & SWT.H_SCROLL) != 0) setScrollWidth ();
     1133        if ((style & SWT.H_SCROLL) != 0) setScrollWidth ();
    11351134}
    11361135
     
    12481247}
    12491248//@@TODO(lpino): Implement ?
    1250 //void setScrollWidth () {
    1251 //      int newWidth = 0;
     1249void setScrollWidth () {
     1250        int newWidth = 0;
     1251        int hps = this.hps;
     1252        if (hps == 0) hps = OS.WinGetPS (handle);
     1253        RECTL rcl = new RECTL();
     1254        int count = OS.WinSendMsg (handle, OS.LM_QUERYITEMCOUNT, 0, 0);
     1255        int flags = OS.DT_QUERYEXTENT | OS.DT_TEXTATTRS;
     1256        for (int i=0; i<count; i++) {
     1257                int length = OS.WinSendMsg (handle, OS.LM_QUERYITEMTEXTLENGTH,(short)i, 0);
     1258                if (length != OS.LIT_ERROR) {
     1259                        PSZ buffer = new PSZ( length + 1);
     1260                        int result = OS.WinSendMsg (handle, OS.LM_QUERYITEMTEXT, OS.MPFROM2SHORT((short)i,(short)length), buffer);
     1261                        if (result != 0) {
     1262                                OS.WinDrawText (hps, -1, buffer.getBytes(), rcl, 0, 0, flags);
     1263                                newWidth = Math.max (newWidth, rcl.xRight - rcl.xLeft);
     1264                        }
     1265                }
     1266        }       
     1267        if (this.hps == 0) OS.WinReleasePS (hps);
     1268        OS.WinSendMsg (handle, OS.LM_SETITEMWIDTH, newWidth, 0);
     1269
    12521270//      RECT rect = new RECT ();
    12531271//      int newFont, oldFont = 0;
     
    12721290//      OS.ReleaseDC (handle, hDC);
    12731291//      OS.SendMessage (handle, OS.LB_SETHORIZONTALEXTENT, newWidth + 3, 0);
    1274 //}
     1292}
    12751293//@@TODO(lpino): Implement ?
    1276 //void setScrollWidth (TCHAR buffer, boolean grow) {
    1277 //      RECT rect = new RECT ();
     1294void setScrollWidth (PSZ buffer, boolean grow) {
     1295        RECTL rcl = new RECTL ();
    12781296//      int newFont, oldFont = 0;
    12791297//      int hDC = OS.GetDC (handle);
     1298        int hps = this.hps;
     1299        if (hps == 0) hps = OS.WinGetPS (handle);
    12801300//      newFont = OS.SendMessage (handle, OS.WM_GETFONT, 0, 0);
    12811301//      if (newFont != 0) oldFont = OS.SelectObject (hDC, newFont);
    12821302//      int flags = OS.DT_CALCRECT | OS.DT_SINGLELINE | OS.DT_NOPREFIX;
     1303        int flags = OS.DT_QUERYEXTENT | OS.DT_TEXTATTRS;
     1304        OS.WinDrawText (hps, -1, buffer.getBytes(), rcl, 0, 0, flags);
     1305        if (this.hps == 0) OS.WinReleasePS (hps);
    12831306//      OS.DrawText (hDC, buffer, -1, rect, flags);
    12841307//      if (newFont != 0) OS.SelectObject (hDC, oldFont);
    12851308//      OS.ReleaseDC (handle, hDC);
    1286 //      setScrollWidth (rect.right - rect.left, grow);
    1287 //}
    1288 
    1289 //void setScrollWidth (int newWidth, boolean grow) {
    1290 //      int width = OS.SendMessage (handle, OS.LB_GETHORIZONTALEXTENT, 0, 0);
    1291 //      if (grow) {
    1292 //              if (newWidth <= width) return;
    1293 //              OS.SendMessage (handle, OS.LB_SETHORIZONTALEXTENT, newWidth + 3, 0);
    1294 //      } else {
    1295 //              if (newWidth < width) return;
    1296 //              setScrollWidth ();
    1297 //      }
    1298 //}
     1309        setScrollWidth (rcl.xRight - rcl.xLeft, grow);
     1310}
     1311
     1312void setScrollWidth (int newWidth, boolean grow) {
     1313        int width = OS.WinQuerySysValue (handle, OS.SV_CYHSCROLL);
     1314        if (grow) {
     1315                if (newWidth <= width) return;
     1316                OS.WinSendMsg (handle, OS.LM_SETITEMWIDTH, newWidth, 0);
     1317        } else {
     1318                if (newWidth < width) return;
     1319                setScrollWidth ();
     1320        }
     1321}
    12991322
    13001323/**
     
    14201443        checkWidget ();
    14211444        if ((style & SWT.MULTI) != 0) deselectAll ();
    1422         select (start, end);
     1445                select (start, end);
    14231446        if ((style & SWT.MULTI) != 0) {
    14241447                if (start != -1) setFocusIndex (start);
     
    14641487        checkWidget ();
    14651488        int index;
    1466         int result = OS.WinSendMsg (handle, OS.LM_QUERYSELECTION, OS.LIT_FIRST, 0);
    1467         index = result;
    1468         if (result == OS.LIT_NONE) return;
    1469 //@@TODO(lpino): Test border conditions to see if this code is necesary
    1470 //      int count = OS.SendMessage (handle, OS.LB_GETCOUNT, 0, 0);
    1471 //      if (count == 0) return;
    1472 //      int height = OS.SendMessage (handle, OS.LB_GETITEMHEIGHT, 0, 0);
    1473 //      RECT rect = new RECT ();
    1474 //      OS.GetClientRect (handle, rect);
    1475 //      int topIndex = OS.SendMessage (handle, OS.LB_GETTOPINDEX, 0, 0);
    1476 //      int visibleCount = Math.max (rect.bottom / height, 1);
    1477 //      int bottomIndex = Math.min (topIndex + visibleCount + 1, count - 1);
    1478 //      if ((topIndex <= index) && (index <= bottomIndex)) return;
    1479 //      int newTop = Math.min (Math.max (index - (visibleCount / 2), 0), count - 1);
    1480         OS.WinSendMsg (handle, OS.LM_SETTOPINDEX,(short) index, 0);
     1489        //@@INFO(lpino): There is no difference in OS/2 between selecting single and multiple selects. The API is the same
     1490        // and one needs to call LM_QUERYSELECTION multiple times to get the indexes until it returns LIT_NONE
     1491        index = OS.WinSendMsg (handle, OS.LM_QUERYSELECTION, OS.LIT_FIRST, 0);
     1492        if (index == OS.LIT_NONE) return;
     1493
     1494        int count = OS.WinSendMsg (handle, OS.LM_QUERYITEMCOUNT, 0, 0);
     1495        if (count == 0) return;
     1496        int height = getItemHeight();
     1497        RECTL rect = new RECTL ();
     1498        OS. WinQueryWindowRect (handle, rect);
     1499        int topIndex = OS.WinSendMsg (handle, OS.LM_QUERYTOPINDEX, 0, 0);
     1500        int visibleCount = Math.max (rect.yTop / height, 1);
     1501        int bottomIndex = Math.min (topIndex + visibleCount + 1, count - 1);
     1502        if ((topIndex <= index) && (index <= bottomIndex)) return;
     1503        int newTop = Math.min (Math.max (index - (visibleCount / 2), 0), count - 1);
     1504        OS.WinSendMsg (handle, OS.LM_SETTOPINDEX,(short) newTop, 0);
    14811505}
    14821506
    14831507int widgetStyle () {
    1484         int bits = super.widgetStyle () | OS.LS_NOADJUSTPOS;
     1508        int bits = super.widgetStyle ();
    14851509        if ((style & SWT.SINGLE) != 0) return bits;
    14861510        if ((style & SWT.MULTI) != 0) {
    14871511                if ((style & SWT.SIMPLE) != 0)
    1488                     bits |= OS.LS_MULTIPLESEL;
    1489                 else
    1490                     bits |= OS.LS_EXTENDEDSEL;
     1512                    return bits |= OS.LS_MULTIPLESEL;
     1513                return bits |= OS.LS_EXTENDEDSEL | OS.LS_EXTENDEDSEL;
    14911514        }
    14921515        if ((style & SWT.H_SCROLL) != 0)
     
    15021525        return ListProc;
    15031526}
    1504 //@@TODO(lpino): Implement this call
    1505 //MRESULT WM_MEASUREITEM (int mp1, int mp2) {
    1506 //    return super.WM_MEASUREITEM (mp1, mp2);
    1507 //}
    15081527
    15091528MRESULT wmControlChild (int mp1, int mp2) {
    15101529    int code = mp1 >> 16;
    15111530    switch (code) {
    1512         case OS.LN_SELECT:
     1531        case OS.LN_ENTER:
    15131532            postEvent (SWT.Selection);
    15141533            break;
    1515         case OS.LN_ENTER:
     1534        case OS.LN_SELECT:
    15161535           postEvent(SWT.DefaultSelection);
    1517            break;
     1536           break;
    15181537    }
    15191538    return super.wmControlChild (mp1, mp2);
     
    15271546
    15281547//@@TODO(lpino): Implement this
    1529 //int wmMeasureItem (int msg, int mp1, int mp2) {
     1548MRESULT wmMeasureChild (int mp1, int mp2) {
     1549        System.out.println("List::wmMeasureChild");
    15301550//      int code = callWindowProc (msg, mp1, mp2);
    15311551////    if (code == 0) return MRESULT.ZERO;
    1532 //      return code;   
    1533 //}
    1534 
    1535 }
     1552        return MRESULT.ZERO;   
     1553}
     1554
     1555}
Note: See TracChangeset for help on using the changeset viewer.