I try to create function for remove documents in structure view and have problem. When I create funciton, were I want to stop dragging document in structure view by using F_ApiReturnValue(FR_CancelOperation); I stoped the drag action, but document in my book list disappear. This document shows only when FM is reopened.
I have already tried redisplay for book, deselect element range, but it doesn't help.
In this case, when drag event is called, I use only simple question to determinate, if document has to be moved in structure. When I tried to debug, after FA_Note_PreDragElement there was called also FA_Note_DirtyBook, FA_Note_PostMouseCommand, FA_Note_BackToUser. But after that listed book on left side of FM was refreshed and destroyed.
StringT question = (StringT)"Change the position?";
if (F_ApiAlert(question, FF_ALERT_YES_DEFAULT)!=0)