Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/Decorations.d @ 38:2e09b0e6857a
work on phobosfication
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 25 Mar 2009 11:18:25 +0100 |
parents | d46287db17ed |
children |
comparison
equal
deleted
inserted
replaced
37:46c5f8f56b41 | 38:2e09b0e6857a |
---|---|
1337 public void setText (String string) { | 1337 public void setText (String string) { |
1338 checkWidget (); | 1338 checkWidget (); |
1339 // SWT extension: allow null string | 1339 // SWT extension: allow null string |
1340 //if (string is null) error (SWT.ERROR_NULL_ARGUMENT); | 1340 //if (string is null) error (SWT.ERROR_NULL_ARGUMENT); |
1341 /* Use the character encoding for the default locale */ | 1341 /* Use the character encoding for the default locale */ |
1342 TCHAR[] buffer = StrToTCHARs (string, true); | 1342 StringT buffer = StrToTCHARs (string, true); |
1343 /* Ensure that the title appears in the task bar.*/ | 1343 /* Ensure that the title appears in the task bar.*/ |
1344 if ((state & FOREIGN_HANDLE) !is 0) { | 1344 if ((state & FOREIGN_HANDLE) !is 0) { |
1345 auto hHeap = OS.GetProcessHeap (); | 1345 auto hHeap = OS.GetProcessHeap (); |
1346 int byteCount = buffer.length * TCHAR.sizeof; | 1346 int byteCount = buffer.length * TCHAR.sizeof; |
1347 auto pszText = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount); | 1347 auto pszText = OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount); |