Mercurial > projects > dwt2
diff org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Spinner.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 |
line wrap: on
line diff
--- a/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Spinner.d Wed Mar 25 11:18:25 2009 +0100 +++ b/org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Spinner.d Wed Mar 25 13:20:43 2009 +0100 @@ -222,7 +222,7 @@ OS.SendMessage (hwndUpDown, OS.IsWinCE ? OS.UDM_SETPOS : OS.UDM_SETPOS32, 0, 0); pageIncrement = 10; digits = 0; - TCHAR* buffer = StrToTCHARz (getCodePage (), "0"); + LPCTSTR buffer = StrToTCHARz (getCodePage (), "0"); OS.SetWindowText (hwndText, buffer); } @@ -838,9 +838,9 @@ String newText = verifyText (oldText, start, end, event); if (newText is null) return false; if (newText is oldText) return true; - TCHAR* buffer = StrToTCHARz (getCodePage (), newText); + LPCTSTR buffer = StrToTCHARz (getCodePage (), newText); OS.SendMessage (hwndText, OS.EM_SETSEL, start, end); - OS.SendMessage (hwndText, OS.EM_REPLACESEL, 0, buffer); + OS.SendMessage (hwndText, OS.EM_REPLACESEL, 0, cast(void*)buffer); return false; } @@ -1051,7 +1051,7 @@ string = verifyText (string, 0, length_, null); if (string is null) return; } - TCHAR* buffer = StrToTCHARz (getCodePage (), string); + LPCTSTR buffer = StrToTCHARz (getCodePage (), string); OS.SetWindowText (hwndText, buffer); OS.SendMessage (hwndText, OS.EM_SETSEL, 0, -1); if (!OS.IsWinCE) {