Mercurial > projects > dwt-win
comparison dwt/widgets/Table.d @ 237:e2affbeb686d
Making tango.sys.win32.Types and dwt.internal.win32.WINTYPES to match common declaration. Make ansi charactars of type ubyte.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Thu, 19 Jun 2008 03:25:36 +0200 |
parents | 8efa9bb96c53 |
children | ecb80b2a89e1 |
comparison
equal
deleted
inserted
replaced
236:9c1bb90eba13 | 237:e2affbeb686d |
---|---|
6747 // } | 6747 // } |
6748 if (string !is null) { | 6748 if (string !is null) { |
6749 Shell shell = getShell (); | 6749 Shell shell = getShell (); |
6750 wchar [] chars = StrToTCHARs(string, true ); | 6750 wchar [] chars = StrToTCHARs(string, true ); |
6751 if (hdr.code is OS.TTN_GETDISPINFOA) { | 6751 if (hdr.code is OS.TTN_GETDISPINFOA) { |
6752 char [] bytes = new char [chars.length * 2]; | 6752 CHAR [] bytes = new CHAR [chars.length * 2]; |
6753 OS.WideCharToMultiByte (getCodePage (), 0, chars.ptr, chars.length, bytes.ptr, bytes.length, null, null); | 6753 OS.WideCharToMultiByte (getCodePage (), 0, chars.ptr, chars.length, bytes.ptr, bytes.length, null, null); |
6754 shell.setToolTipText (lpnmtdi, bytes); | 6754 shell.setToolTipText (lpnmtdi, bytes); |
6755 OS.MoveMemory (lParam, cast(NMTTDISPINFOA*)lpnmtdi, NMTTDISPINFOA.sizeof); | 6755 OS.MoveMemory (lParam, cast(NMTTDISPINFOA*)lpnmtdi, NMTTDISPINFOA.sizeof); |
6756 } else { | 6756 } else { |
6757 shell.setToolTipText (lpnmtdi, chars); | 6757 shell.setToolTipText (lpnmtdi, chars); |