Mercurial > projects > dwt2
diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Group.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 |
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Group.d Wed Mar 25 11:18:25 2009 +0100 +++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Group.d Wed Mar 25 13:20:43 2009 +0100 @@ -202,7 +202,7 @@ * If the group has text, and the text is wider than the * client area, pad the width so the text is not clipped. */ - TCHAR* buffer = StrToTCHARz (/+getCodePage (),+/ string); + LPCTSTR buffer = StrToTCHARz (/+getCodePage (),+/ string); HFONT newFont, oldFont; auto hDC = OS.GetDC (handle); newFont = cast(HFONT) OS.SendMessage (handle, OS.WM_GETFONT, 0, 0); @@ -264,7 +264,7 @@ if ((style & SWT.RIGHT_TO_LEFT) !is 0) { if (OS.COMCTL32_MAJOR < 6 || !OS.IsAppThemed ()) { String string = enabled || text.length is 0 ? text : " " ~ text ~ " "; - TCHAR* buffer = StrToTCHARz (/+getCodePage (),+/ string); + LPCTSTR buffer = StrToTCHARz (/+getCodePage (),+/ string); OS.SetWindowText (handle, buffer); } } @@ -404,7 +404,7 @@ } } } - TCHAR* buffer = StrToTCHARz(/+getCodePage (),+/ string); + LPCTSTR buffer = StrToTCHARz(/+getCodePage (),+/ string); OS.SetWindowText (handle, buffer); }