comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/widgets/ToolItem.d @ 38:2e09b0e6857a

work on phobosfication
author Frank Benoit <benoit@tionex.de>
date Wed, 25 Mar 2009 11:18:25 +0100
parents 6dd524f61e62
children
comparison
equal deleted inserted replaced
37:46c5f8f56b41 38:2e09b0e6857a
782 info.fsStyle = cast(byte) (widgetStyle () | OS.BTNS_AUTOSIZE); 782 info.fsStyle = cast(byte) (widgetStyle () | OS.BTNS_AUTOSIZE);
783 auto hHeap = OS.GetProcessHeap (); 783 auto hHeap = OS.GetProcessHeap ();
784 TCHAR* pszText; 784 TCHAR* pszText;
785 if (string.length !is 0) { 785 if (string.length !is 0) {
786 info.fsStyle |= OS.BTNS_SHOWTEXT; 786 info.fsStyle |= OS.BTNS_SHOWTEXT;
787 TCHAR[] buffer = StrToTCHARs (parent.getCodePage (), string, true ); 787 StringT buffer = StrToTCHARs (parent.getCodePage (), string, true );
788 int byteCount = buffer.length * TCHAR.sizeof; 788 int byteCount = buffer.length * TCHAR.sizeof;
789 pszText = cast(TCHAR*) OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount); 789 pszText = cast(TCHAR*) OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount);
790 OS.MoveMemory (pszText, buffer.ptr, byteCount); 790 OS.MoveMemory (pszText, buffer.ptr, byteCount);
791 info.pszText = pszText; 791 info.pszText = pszText;
792 } 792 }