Post
by Thomas Lauzi » 28 Jan 2005, 16:03
Posted by: Thomas Lauzi
Yes Gerhard,
this commands I missed, but unfortunatly my code doesn´t work anymore.
I have tree where you can drag-drop folders.
If I replace my cursor loading/unloading with
SalDragDropEnableDrop/SalDragDropDisableDrop my code hangs.
!!CB!! 173
On SAM_DragMove
!
If SalNumberToWindowHandle( wParam ) = hWndItem
! Quelle und Ziel ist er selbst, d.h es werden nur Ordner verschoben
If .. ActionAllowed( SAM_DragMove )
Call SalCursorSet( hWndItem,CURSOR_Drop, CURSOR_DragDrop )
<-SalDragDropEnableDrop
Else
Call SalCursorSet( hWndItem,CURSOR_NoDrop, CURSOR_DragDrop )
<-SalDragDropDisableDrop
Else
! Quelle ist ein anderes Control, d.h. es wird etwas in die Ordner
geschoben
If .. ActionAllowed( PM_DragDropExtern )
Call SalCursorSet( hWndItem,CURSOR_Drop, CURSOR_DragDrop )
<-SalDragDropEnableDrop
Else
Call SalCursorSet( hWndItem,CURSOR_NoDrop, CURSOR_DragDrop )
<-SalDragDropDisableDrop
Call SalSendClassMessage( SAM_DragMove,wParam, lParam )