Mercurial > projects > dwt-win
diff dwt/widgets/Tree.d @ 263:27244095ce14
Fix struct sizes, based on a comparison to the values seen by C apps.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 26 Jul 2008 02:08:41 +0200 |
parents | b3dbd786541a |
children | 4289aa6cbc0c |
line wrap: on
line diff
--- a/dwt/widgets/Tree.d Thu Jul 24 23:02:48 2008 +0200 +++ b/dwt/widgets/Tree.d Sat Jul 26 02:08:41 2008 +0200 @@ -2080,7 +2080,7 @@ RECT rect; if (OS.SendMessage (hwndHeader, OS.HDM_GETITEMRECT, index, &rect) !is 0) { TOOLINFO lpti; - lpti.cbSize = TOOLINFO.sizeof; + lpti.cbSize = OS.TOOLINFO_sizeof; lpti.uFlags = OS.TTF_SUBCLASS; lpti.hwnd = hwndHeader; lpti.uId = column.id = display.nextToolTipId++; @@ -2249,7 +2249,7 @@ if (itemToolTipHandle is null) error (DWT.ERROR_NO_HANDLES); OS.SendMessage (itemToolTipHandle, OS.TTM_SETDELAYTIME, OS.TTDT_INITIAL, 0); TOOLINFO lpti; - lpti.cbSize = TOOLINFO.sizeof; + lpti.cbSize = OS.TOOLINFO_sizeof; lpti.hwnd = handle; lpti.uId = cast(int)handle; lpti.uFlags = OS.TTF_SUBCLASS | OS.TTF_TRANSPARENT; @@ -2565,7 +2565,7 @@ /* Remove the tool tip item for the header */ if (headerToolTipHandle !is null) { TOOLINFO lpti; - lpti.cbSize = TOOLINFO.sizeof; + lpti.cbSize = OS.TOOLINFO_sizeof; lpti.uId = column.id; lpti.hwnd = hwndHeader; OS.SendMessage (headerToolTipHandle, OS.TTM_DELTOOL, 0, &lpti); @@ -5466,7 +5466,7 @@ if (headerToolTipHandle is null) return; RECT rect; TOOLINFO lpti; - lpti.cbSize = TOOLINFO.sizeof; + lpti.cbSize = OS.TOOLINFO_sizeof; lpti.uFlags = OS.TTF_SUBCLASS; lpti.hwnd = hwndHeader; lpti.lpszText = OS.LPSTR_TEXTCALLBACK; @@ -6690,7 +6690,7 @@ } } TOOLINFO lpti; - lpti.cbSize = TOOLINFO.sizeof; + lpti.cbSize = OS.TOOLINFO_sizeof; lpti.hwnd = handle; lpti.uId = cast(int) handle; lpti.uFlags = OS.TTF_SUBCLASS | OS.TTF_TRANSPARENT; @@ -7732,7 +7732,7 @@ } if (OS.SendMessage (itemToolTipHandle, OS.TTM_GETCURRENTTOOL, 0, 0) !is 0) { TOOLINFO lpti; - lpti.cbSize = TOOLINFO.sizeof; + lpti.cbSize = OS.TOOLINFO_sizeof; if (OS.SendMessage (itemToolTipHandle, OS.TTM_GETCURRENTTOOL, 0, cast(int)&lpti) !is 0) { int index; TreeItem item;