comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/TableColumn.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
comparison
equal deleted inserted replaced
38:2e09b0e6857a 39:0ecb2b338560
341 checkWidget (); 341 checkWidget ();
342 int index = parent.indexOf (this); 342 int index = parent.indexOf (this);
343 if (index is -1) return; 343 if (index is -1) return;
344 auto hwnd = parent.handle; 344 auto hwnd = parent.handle;
345 int oldWidth = OS.SendMessage (hwnd, OS.LVM_GETCOLUMNWIDTH, index, 0); 345 int oldWidth = OS.SendMessage (hwnd, OS.LVM_GETCOLUMNWIDTH, index, 0);
346 TCHAR* buffer = StrToTCHARz (parent.getCodePage (), text); 346 LPCTSTR buffer = StrToTCHARz (parent.getCodePage (), text);
347 int headerWidth = OS.SendMessage (hwnd, OS.LVM_GETSTRINGWIDTH, 0, buffer) + Table.HEADER_MARGIN; 347 int headerWidth = OS.SendMessage (hwnd, OS.LVM_GETSTRINGWIDTH, 0, cast(void*)buffer) + Table.HEADER_MARGIN;
348 if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) headerWidth += Table.HEADER_EXTRA; 348 if (OS.COMCTL32_MAJOR >= 6 && OS.IsAppThemed ()) headerWidth += Table.HEADER_EXTRA;
349 bool hasHeaderImage = false; 349 bool hasHeaderImage = false;
350 if (image !is null || parent.sortColumn is this) { 350 if (image !is null || parent.sortColumn is this) {
351 hasHeaderImage = true; 351 hasHeaderImage = true;
352 Image headerImage = null; 352 Image headerImage = null;