Changeset 97
- Timestamp:
- 02/27/06 12:13:29 (3 years ago)
- Files:
-
- trunk/current/win32/import/dwt/internal/ole/win32/OAIDL.d (modified) (1 diff)
- trunk/current/win32/import/dwt/internal/win32/wintypes.d (modified) (1 diff)
- trunk/current/win32/import/dwt/widgets/table.d (modified) (3 diffs)
- trunk/current/win32/packages/dwt/examples/controlexample/run-build.bat (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/current/win32/import/dwt/internal/ole/win32/OAIDL.d
r82 r97 325 325 DOUBLE dblVal; /* VT_R8 */ 326 326 VARIANT_BOOL boolVal; /* VT_BOOL */ 327 _VARIANT_BOOL bool; /* (obsolete) */327 _VARIANT_BOOL BOOLval; /* (obsolete) */ 328 328 SCODE scode; /* VT_ERROR */ 329 329 CY cyVal; /* VT_CY */ trunk/current/win32/import/dwt/internal/win32/wintypes.d
r82 r97 1671 1671 1672 1672 // setter 1673 void uJustification(uint val) { BITS & 0xF0; BITS |= (val & 0x0F); }1673 void uJustification(uint val) { BITS &= 0xF0; BITS |= (val & 0x0F); } 1674 1674 void fClusterStart(uint val) { btvs(&BITS, 4, val); } 1675 1675 void fDiacritic(uint val) { btvs(&BITS, 5, val); } trunk/current/win32/import/dwt/widgets/table.d
r93 r97 2531 2531 HIMAGELIST hStateList = cast(HIMAGELIST)OS.SendMessage (handle, OS.LVM_GETIMAGELIST, OS.LVSIL_STATE, 0); 2532 2532 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; 2536 2536 } 2537 2537 HIMAGELIST hImageList = cast(HIMAGELIST)OS.SendMessage (handle, OS.LVM_GETIMAGELIST, OS.LVSIL_SMALL, 0); 2538 2538 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; 2542 2542 } 2543 2543 newWidth += 8; 2544 2544 int oldWidth = OS.SendMessage (handle, OS.LVM_GETCOLUMNWIDTH, 0, 0); 2545 2545 if (newWidth > oldWidth) { 2546 OS.SendMessage (handle, OS.LVM_SETCOLUMNWIDTH, 0, newWidth); 2546 OS.SendMessage (handle, OS.LVM_SETCOLUMNWIDTH, 0, newWidth); 2547 2547 return true; 2548 2548 } … … 3163 3163 3164 3164 LDWTRESULT WM_NOTIFY_ (int wParam, int lParam) { 3165 NMHDR* hdr = new NMHDR (); 3166 OS.MoveMemory (hdr, lParam, NMHDR.sizeof); 3165 NMHDR* hdr = cast(NMHDR*)lParam; 3167 3166 HWND hwndHeader = cast(HWND)OS.SendMessage (handle, OS.LVM_GETHEADER, 0, 0); 3168 if (hdr.hwndFrom ==hwndHeader) {3167 if (hdr.hwndFrom is hwndHeader) { 3169 3168 /* 3170 3169 * Feature in Windows. On NT, the automatically created … … 3214 3213 } 3215 3214 lastWidth = width; 3216 NMHEADER* phdn = new NMHEADER (); 3217 OS.MoveMemory (phdn, lParam, NMHEADER.sizeof); 3215 NMHEADER* phdn = cast(NMHEADER*)lParam; 3218 3216 if (phdn.pitem !is null) { 3219 HDITEM* pitem = new HDITEM (); 3220 OS.MoveMemory (pitem, phdn.pitem, HDITEM.sizeof); 3217 HDITEM* pitem = phdn.pitem; 3221 3218 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; 3223 3222 if (column !is null) { 3224 3223 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_DROP1 build controlexample.d -release -O -w -gui -Xdwt -clean -Tcontrolexample.exe -version=OLE_COM -version=DRAG_DROP 2 2 pause
