Mercurial > projects > dwt2
diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Label.d @ 39:0ecb2b338560
further work on phobosification
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 25 Mar 2009 13:20:43 +0100 |
parents | 6dd524f61e62 |
children |
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Label.d Wed Mar 25 11:18:25 2009 +0100 +++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Label.d Wed Mar 25 13:20:43 2009 +0100 @@ -427,7 +427,7 @@ if (oldBits !is newBits) OS.SetWindowLong (handle, OS.GWL_STYLE, newBits); } string = Display.withCrLf (string); - TCHAR* buffer = StrToTCHARz ( getCodePage (), string); + LPCTSTR buffer = StrToTCHARz ( getCodePage (), string); OS.SetWindowText (handle, buffer); /* * Bug in Windows. For some reason, the HBRUSH that @@ -662,7 +662,7 @@ imageHeight = rect.height; } RECT rect; - TCHAR* buffer = null; + LPCTSTR buffer = null; int textWidth = 0, textHeight = 0, flags = 0; if (drawText) { //rect = new RECT ();