Changeset 97

Show
Ignore:
Timestamp:
02/27/06 12:13:29 (3 years ago)
Author:
Shawn Liu
Message:

compliant with DMD 0.148

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/current/win32/import/dwt/internal/ole/win32/OAIDL.d

    r82 r97  
    325325    DOUBLE        dblVal;       /* VT_R8                */ 
    326326    VARIANT_BOOL  boolVal;      /* VT_BOOL              */ 
    327     _VARIANT_BOOL bool;         /* (obsolete)           */ 
     327    _VARIANT_BOOL BOOLval;         /* (obsolete)           */ 
    328328    SCODE         scode;        /* VT_ERROR             */ 
    329329    CY            cyVal;        /* VT_CY                */ 
  • trunk/current/win32/import/dwt/internal/win32/wintypes.d

    r82 r97  
    16711671     
    16721672    // setter 
    1673     void uJustification(uint val)   { BITS & 0xF0; BITS |= (val & 0x0F); }  
     1673    void uJustification(uint val)   { BITS &= 0xF0; BITS |= (val & 0x0F); }  
    16741674    void fClusterStart(uint val)    { btvs(&BITS, 4, val); } 
    16751675    void fDiacritic(uint val)       { btvs(&BITS, 5, val); } 
  • trunk/current/win32/import/dwt/widgets/table.d

    r93 r97  
    25312531        HIMAGELIST hStateList = cast(HIMAGELIST)OS.SendMessage (handle, OS.LVM_GETIMAGELIST, OS.LVSIL_STATE, 0); 
    25322532        if (hStateList !is null) { 
    2533             int [] cx = new int [1], cy = new int [1]
    2534             OS.ImageList_GetIconSize (hStateList, cx, cy); 
    2535             newWidth += cx [0] + 4; 
     2533            int cx, cy
     2534            OS.ImageList_GetIconSize (hStateList, &cx, &cy); 
     2535            newWidth += cx + 4; 
    25362536        } 
    25372537        HIMAGELIST hImageList = cast(HIMAGELIST)OS.SendMessage (handle, OS.LVM_GETIMAGELIST, OS.LVSIL_SMALL, 0); 
    25382538        if (hImageList !is null) { 
    2539             int [] cx = new int [1], cy = new int [1]
    2540             OS.ImageList_GetIconSize (hImageList, cx, cy); 
    2541             newWidth += cx [0]
     2539            int cx, cy
     2540            OS.ImageList_GetIconSize (hImageList, &cx, &cy); 
     2541            newWidth += cx
    25422542        } 
    25432543        newWidth += 8; 
    25442544        int oldWidth = OS.SendMessage (handle, OS.LVM_GETCOLUMNWIDTH, 0, 0); 
    25452545        if (newWidth > oldWidth) { 
    2546             OS.SendMessage (handle, OS.LVM_SETCOLUMNWIDTH, 0, newWidth); 
     2546            OS.SendMessage (handle, OS.LVM_SETCOLUMNWIDTH, 0, newWidth);            
    25472547            return true; 
    25482548        } 
     
    31633163 
    31643164LDWTRESULT WM_NOTIFY_ (int wParam, int lParam) { 
    3165     NMHDR* hdr = new NMHDR (); 
    3166     OS.MoveMemory (hdr, lParam, NMHDR.sizeof); 
     3165    NMHDR* hdr = cast(NMHDR*)lParam; 
    31673166    HWND hwndHeader = cast(HWND)OS.SendMessage (handle, OS.LVM_GETHEADER, 0, 0); 
    3168     if (hdr.hwndFrom == hwndHeader) { 
     3167    if (hdr.hwndFrom is hwndHeader) { 
    31693168        /* 
    31703169        * Feature in Windows.  On NT, the automatically created 
     
    32143213                } 
    32153214                lastWidth = width; 
    3216                 NMHEADER* phdn = new NMHEADER (); 
    3217                 OS.MoveMemory (phdn, lParam, NMHEADER.sizeof); 
     3215                NMHEADER* phdn = cast(NMHEADER*)lParam; 
    32183216                if (phdn.pitem !is null) { 
    3219                     HDITEM* pitem = new HDITEM (); 
    3220                     OS.MoveMemory (pitem, phdn.pitem, HDITEM.sizeof); 
     3217                    HDITEM* pitem = phdn.pitem; 
    32213218                    if ((pitem.mask & OS.HDI_WIDTH) != 0) { 
    3222                         TableColumn column = columns [phdn.iItem]; 
     3219                        int index = phdn.iItem; 
     3220                        int size = columns.length;                                               
     3221                        TableColumn column = index < size ? columns [index] : null; 
    32233222                        if (column !is null) { 
    32243223                            column.sendEvent (DWT.Resize); 
  • trunk/current/win32/packages/dwt/examples/controlexample/run-build.bat

    r82 r97  
    1 build controlexample.d -debug -g -w -gui -Xdwt -clean -Tcontrolexample.exe -version=OLE_COM -version=DRAG_DROP 
     1build controlexample.d -release -O -w -gui -Xdwt -clean -Tcontrolexample.exe -version=OLE_COM -version=DRAG_DROP 
    22pause