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

Update to compile and execute with dmd 2.052.
author kntroh
date Wed, 16 Mar 2011 21:53:53 +0900
parents 0ecb2b338560
children
comparison
equal deleted inserted replaced
111:b6e9904989ed 112:9f4c18c268b2
544 if (OS.SendMessage (handle, OS.LVM_GETBKCOLOR, 0, 0) is OS.CLR_NONE) { 544 if (OS.SendMessage (handle, OS.LVM_GETBKCOLOR, 0, 0) is OS.CLR_NONE) {
545 int dwExStyle = OS.SendMessage (handle, OS.LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0); 545 int dwExStyle = OS.SendMessage (handle, OS.LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0);
546 if ((dwExStyle & OS.LVS_EX_FULLROWSELECT) is 0) { 546 if ((dwExStyle & OS.LVS_EX_FULLROWSELECT) is 0) {
547 if ((nmcd.nmcd.uItemState & OS.CDIS_FOCUS) !is 0) { 547 if ((nmcd.nmcd.uItemState & OS.CDIS_FOCUS) !is 0) {
548 nmcd.nmcd.uItemState &= ~OS.CDIS_FOCUS; 548 nmcd.nmcd.uItemState &= ~OS.CDIS_FOCUS;
549 OS.MoveMemory (cast(NMLVCUSTOMDRAW*)lParam, nmcd, OS.NMLVCUSTOMDRAW_sizeof); 549 OS.MoveMemory (lParam, nmcd, OS.NMLVCUSTOMDRAW_sizeof);
550 } 550 }
551 } 551 }
552 } 552 }
553 } 553 }
554 } 554 }
3410 if (measureEvent !is null) { 3410 if (measureEvent !is null) {
3411 textRect.right = Math.min (cellRect.right, measureEvent.x + measureEvent.width); 3411 textRect.right = Math.min (cellRect.right, measureEvent.x + measureEvent.width);
3412 } 3412 }
3413 if (!ignoreDrawFocus) { 3413 if (!ignoreDrawFocus) {
3414 nmcd.nmcd.uItemState &= ~OS.CDIS_FOCUS; 3414 nmcd.nmcd.uItemState &= ~OS.CDIS_FOCUS;
3415 OS.MoveMemory (cast(void*)lParam, nmcd, OS.NMLVCUSTOMDRAW_sizeof); 3415 OS.MoveMemory (lParam, nmcd, OS.NMLVCUSTOMDRAW_sizeof);
3416 focusRect = new RECT; 3416 focusRect = new RECT;
3417 *focusRect = textRect; 3417 *focusRect = textRect;
3418 } 3418 }
3419 } 3419 }
3420 if (explorerTheme) { 3420 if (explorerTheme) {
5510 shdi.ptOffset.x = mousePos.x - rect.left; 5510 shdi.ptOffset.x = mousePos.x - rect.left;
5511 shdi.ptOffset.y = mousePos.y - rect.top; 5511 shdi.ptOffset.y = mousePos.y - rect.top;
5512 if ((style & SWT.MIRRORED) !is 0) { 5512 if ((style & SWT.MIRRORED) !is 0) {
5513 shdi.ptOffset.x = shdi.sizeDragImage.cx - shdi.ptOffset.x; 5513 shdi.ptOffset.x = shdi.sizeDragImage.cx - shdi.ptOffset.x;
5514 } 5514 }
5515 OS.MoveMemory (cast(void*)lParam, &shdi, SHDRAGIMAGE.sizeof); 5515 OS.MoveMemory (lParam, &shdi, SHDRAGIMAGE.sizeof);
5516 return 1; 5516 return 1;
5517 } 5517 }
5518 } 5518 }
5519 return super.windowProc (hwnd, msg, wParam, lParam); 5519 return super.windowProc (hwnd, msg, wParam, lParam);
5520 } 5520 }
6793 SetWindowPos (hwndToolTip, null, toolRect.left , toolRect.top, width, height, flags); 6793 SetWindowPos (hwndToolTip, null, toolRect.left , toolRect.top, width, height, flags);
6794 } else { 6794 } else {
6795 NMTTDISPINFO* lpnmtdi = null; 6795 NMTTDISPINFO* lpnmtdi = null;
6796 if (hdr.code is OS.TTN_GETDISPINFOA) { 6796 if (hdr.code is OS.TTN_GETDISPINFOA) {
6797 lpnmtdi = cast(NMTTDISPINFO*)new NMTTDISPINFOA; 6797 lpnmtdi = cast(NMTTDISPINFO*)new NMTTDISPINFOA;
6798 OS.MoveMemory (lpnmtdi, cast(void*) lParam, NMTTDISPINFOA.sizeof); 6798 OS.MoveMemory (cast(int) lpnmtdi, cast(void*) lParam, NMTTDISPINFOA.sizeof);
6799 if (lpnmtdi.lpszText !is null) { 6799 if (lpnmtdi.lpszText !is null) {
6800 (cast(char*)lpnmtdi.lpszText)[0] = 0; 6800 (cast(char*)lpnmtdi.lpszText)[0] = 0;
6801 } 6801 }
6802 } else { 6802 } else {
6803 lpnmtdi = cast(NMTTDISPINFO*)new NMTTDISPINFOW; 6803 lpnmtdi = cast(NMTTDISPINFO*)new NMTTDISPINFOW;
6804 OS.MoveMemory (lpnmtdi, cast(void*) lParam, NMTTDISPINFOW.sizeof); 6804 OS.MoveMemory (lpnmtdi, lParam, NMTTDISPINFOW.sizeof);
6805 if (lpnmtdi.lpszText !is null) { 6805 if (lpnmtdi.lpszText !is null) {
6806 (cast(wchar*)lpnmtdi.lpszText)[0] = 0; 6806 (cast(wchar*)lpnmtdi.lpszText)[0] = 0;
6807 } 6807 }
6808 } 6808 }
6809 RECT cellRect = item.getBounds (pinfo.iItem, pinfo.iSubItem, true, true, true, true, hDC); 6809 RECT cellRect = item.getBounds (pinfo.iItem, pinfo.iSubItem, true, true, true, true, hDC);