comparison dwt/dnd/TreeDropTargetEffect.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 36f5cb12e1a2
children fd9c62a2998e
comparison
equal deleted inserted replaced
236:9c1bb90eba13 237:e2affbeb686d
126 public void dragLeave(DropTargetEvent event) { 126 public void dragLeave(DropTargetEvent event) {
127 Tree tree = cast(Tree) control; 127 Tree tree = cast(Tree) control;
128 auto handle = tree.handle; 128 auto handle = tree.handle;
129 if (dropIndex !is -1) { 129 if (dropIndex !is -1) {
130 TVITEM tvItem; 130 TVITEM tvItem;
131 tvItem.hItem = cast(HANDLE) dropIndex; 131 tvItem.hItem = cast(HTREEITEM) dropIndex;
132 tvItem.mask = OS.TVIF_STATE; 132 tvItem.mask = OS.TVIF_STATE;
133 tvItem.stateMask = OS.TVIS_DROPHILITED; 133 tvItem.stateMask = OS.TVIS_DROPHILITED;
134 tvItem.state = 0; 134 tvItem.state = 0;
135 OS.SendMessage (handle, OS.TVM_SETITEM, 0, &tvItem); 135 OS.SendMessage (handle, OS.TVM_SETITEM, 0, &tvItem);
136 dropIndex = -1; 136 dropIndex = -1;
235 expandIndex = cast(int)hItem; 235 expandIndex = cast(int)hItem;
236 } 236 }
237 } 237 }
238 if (dropIndex !is -1 && (dropIndex !is cast(int)hItem || (effect & DND.FEEDBACK_SELECT) is 0)) { 238 if (dropIndex !is -1 && (dropIndex !is cast(int)hItem || (effect & DND.FEEDBACK_SELECT) is 0)) {
239 TVITEM tvItem; 239 TVITEM tvItem;
240 tvItem.hItem = cast(HANDLE) dropIndex; 240 tvItem.hItem = cast(HTREEITEM) dropIndex;
241 tvItem.mask = OS.TVIF_STATE; 241 tvItem.mask = OS.TVIF_STATE;
242 tvItem.stateMask = OS.TVIS_DROPHILITED; 242 tvItem.stateMask = OS.TVIS_DROPHILITED;
243 tvItem.state = 0; 243 tvItem.state = 0;
244 OS.SendMessage (handle, OS.TVM_SETITEM, 0, &tvItem); 244 OS.SendMessage (handle, OS.TVM_SETITEM, 0, &tvItem);
245 dropIndex = -1; 245 dropIndex = -1;
246 } 246 }
247 if (cast(int)hItem !is -1 && cast(int)hItem !is dropIndex && (effect & DND.FEEDBACK_SELECT) !is 0) { 247 if (cast(int)hItem !is -1 && cast(int)hItem !is dropIndex && (effect & DND.FEEDBACK_SELECT) !is 0) {
248 TVITEM tvItem; 248 TVITEM tvItem;
249 tvItem.hItem = cast(HANDLE) hItem; 249 tvItem.hItem = cast(HTREEITEM) hItem;
250 tvItem.mask = OS.TVIF_STATE; 250 tvItem.mask = OS.TVIF_STATE;
251 tvItem.stateMask = OS.TVIS_DROPHILITED; 251 tvItem.stateMask = OS.TVIS_DROPHILITED;
252 tvItem.state = OS.TVIS_DROPHILITED; 252 tvItem.state = OS.TVIS_DROPHILITED;
253 OS.SendMessage (handle, OS.TVM_SETITEM, 0, &tvItem); 253 OS.SendMessage (handle, OS.TVM_SETITEM, 0, &tvItem);
254 dropIndex = cast(int)hItem; 254 dropIndex = cast(int)hItem;