Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Table.d @ 39:0ecb2b338560
further work on phobosification
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 25 Mar 2009 13:20:43 +0100 |
parents | 2e09b0e6857a |
children | 9f4c18c268b2 |
comparison
equal
deleted
inserted
replaced
38:2e09b0e6857a | 39:0ecb2b338560 |
---|---|
4606 OS.DrawText (hDC, buffer.ptr, buffer.length, &rect, flags); | 4606 OS.DrawText (hDC, buffer.ptr, buffer.length, &rect, flags); |
4607 OS.SelectObject (hDC, oldFont); | 4607 OS.SelectObject (hDC, oldFont); |
4608 OS.ReleaseDC (handle, hDC); | 4608 OS.ReleaseDC (handle, hDC); |
4609 newWidth = Math.max (newWidth, rect.right - rect.left); | 4609 newWidth = Math.max (newWidth, rect.right - rect.left); |
4610 } else { | 4610 } else { |
4611 TCHAR* buffer = StrToTCHARz (getCodePage (), string ); | 4611 LPCTSTR buffer = StrToTCHARz (getCodePage (), string ); |
4612 newWidth = Math.max (newWidth, OS.SendMessage (handle, OS.LVM_GETSTRINGWIDTH, 0, buffer)); | 4612 newWidth = Math.max (newWidth, OS.SendMessage (handle, OS.LVM_GETSTRINGWIDTH, 0, cast(void*)buffer)); |
4613 } | 4613 } |
4614 } | 4614 } |
4615 if (item !is null) break; | 4615 if (item !is null) break; |
4616 index++; | 4616 index++; |
4617 } | 4617 } |