Mercurial > projects > dwt-win
comparison dwt/widgets/TableColumn.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 | fd9c62a2998e |
children |
comparison
equal
deleted
inserted
replaced
262:59f6b9f052ff | 263:27244095ce14 |
---|---|
870 auto hwnd = parent.handle; | 870 auto hwnd = parent.handle; |
871 auto hwndHeader = cast(HWND) OS.SendMessage (hwnd, OS.LVM_GETHEADER, 0, 0); | 871 auto hwndHeader = cast(HWND) OS.SendMessage (hwnd, OS.LVM_GETHEADER, 0, 0); |
872 RECT rect; | 872 RECT rect; |
873 if (OS.SendMessage (hwndHeader, OS.HDM_GETITEMRECT, index, &rect) !is 0) { | 873 if (OS.SendMessage (hwndHeader, OS.HDM_GETITEMRECT, index, &rect) !is 0) { |
874 TOOLINFO lpti; | 874 TOOLINFO lpti; |
875 lpti.cbSize = TOOLINFO.sizeof; | 875 lpti.cbSize = OS.TOOLINFO_sizeof; |
876 lpti.hwnd = hwndHeader; | 876 lpti.hwnd = hwndHeader; |
877 lpti.uId = id; | 877 lpti.uId = id; |
878 lpti.rect.left = rect.left; | 878 lpti.rect.left = rect.left; |
879 lpti.rect.top = rect.top; | 879 lpti.rect.top = rect.top; |
880 lpti.rect.right = rect.right; | 880 lpti.rect.right = rect.right; |