comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Tree.d @ 112:9f4c18c268b2

Update to compile and execute with dmd 2.052.
author kntroh
date Wed, 16 Mar 2011 21:53:53 +0900
parents 2e09b0e6857a
children
comparison
equal deleted inserted replaced
111:b6e9904989ed 112:9f4c18c268b2
1191 OS.MoveMemory (lParam, nmcd, NMTVCUSTOMDRAW.sizeof); 1191 OS.MoveMemory (lParam, nmcd, NMTVCUSTOMDRAW.sizeof);
1192 focusRect = textRect; 1192 focusRect = textRect;
1193 } 1193 }
1194 if (explorerTheme) { 1194 if (explorerTheme) {
1195 if (selected || (hot && ignoreDrawHot)) nmcd.nmcd.uItemState &= ~OS.CDIS_HOT; 1195 if (selected || (hot && ignoreDrawHot)) nmcd.nmcd.uItemState &= ~OS.CDIS_HOT;
1196 OS.MoveMemory (cast(void*)lParam, nmcd, NMTVCUSTOMDRAW.sizeof); 1196 OS.MoveMemory (lParam, nmcd, NMTVCUSTOMDRAW.sizeof);
1197 } 1197 }
1198 RECT* itemRect = item.getBounds (index, true, true, false, false, false, hDC); 1198 RECT* itemRect = item.getBounds (index, true, true, false, false, false, hDC);
1199 OS.SaveDC (hDC); 1199 OS.SaveDC (hDC);
1200 OS.SelectClipRgn (hDC, null); 1200 OS.SelectClipRgn (hDC, null);
1201 if (explorerTheme) { 1201 if (explorerTheme) {
1227 fillBackground (hDC, OS.GetBkColor (hDC), &rect); 1227 fillBackground (hDC, OS.GetBkColor (hDC), &rect);
1228 } else { 1228 } else {
1229 if (OS.IsWindowEnabled (handle)) drawBackground (hDC, &rect); 1229 if (OS.IsWindowEnabled (handle)) drawBackground (hDC, &rect);
1230 } 1230 }
1231 nmcd.nmcd.uItemState &= ~OS.CDIS_FOCUS; 1231 nmcd.nmcd.uItemState &= ~OS.CDIS_FOCUS;
1232 OS.MoveMemory (cast(void*)lParam, nmcd, NMTVCUSTOMDRAW.sizeof); 1232 OS.MoveMemory (lParam, nmcd, NMTVCUSTOMDRAW.sizeof);
1233 } 1233 }
1234 } 1234 }
1235 } 1235 }
1236 LRESULT result = null; 1236 LRESULT result = null;
1237 if (clrText is -1 && clrTextBk is -1 && hFont is cast(HFONT)-1) { 1237 if (clrText is -1 && clrTextBk is -1 && hFont is cast(HFONT)-1) {
2726 * as sort column. 2726 * as sort column.
2727 */ 2727 */
2728 updateFullSelection (); 2728 updateFullSelection ();
2729 } 2729 }
2730 2730
2731 bool findCell (int x, int y, inout TreeItem item, inout int index, inout RECT* cellRect, inout RECT* itemRect) { 2731 bool findCell (int x, int y, ref TreeItem item, ref int index, ref RECT* cellRect, ref RECT* itemRect) {
2732 bool found = false; 2732 bool found = false;
2733 TVHITTESTINFO lpht; 2733 TVHITTESTINFO lpht;
2734 lpht.pt.x = x; 2734 lpht.pt.x = x;
2735 lpht.pt.y = y; 2735 lpht.pt.y = y;
2736 OS.SendMessage (handle, OS.TVM_HITTEST, 0, &lpht); 2736 OS.SendMessage (handle, OS.TVM_HITTEST, 0, &lpht);
5840 shdi.ptOffset.x = mousePos.x - rect.left; 5840 shdi.ptOffset.x = mousePos.x - rect.left;
5841 shdi.ptOffset.y = mousePos.y - rect.top; 5841 shdi.ptOffset.y = mousePos.y - rect.top;
5842 if ((style & SWT.MIRRORED) !is 0) { 5842 if ((style & SWT.MIRRORED) !is 0) {
5843 shdi.ptOffset.x = shdi.sizeDragImage.cx - shdi.ptOffset.x; 5843 shdi.ptOffset.x = shdi.sizeDragImage.cx - shdi.ptOffset.x;
5844 } 5844 }
5845 OS.MoveMemory (cast(void*)lParam, &shdi, SHDRAGIMAGE.sizeof); 5845 OS.MoveMemory (lParam, &shdi, SHDRAGIMAGE.sizeof);
5846 return 1; 5846 return 1;
5847 } 5847 }
5848 } 5848 }
5849 return super.windowProc (hwnd, msg, wParam, lParam); 5849 return super.windowProc (hwnd, msg, wParam, lParam);
5850 } 5850 }