I think I have tracked it down, I put a wrapper around the drag and drop code that will not let the operation continue if the edit content is not saved. Could I impose on you to test if this mod addresses the problem that sinsi reported ?
; ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
case WM_DROPFILES
invoke SendMessage,hEdit,EM_GETMODIFY,0,0
test eax, eax
jnz @F
mov fname, DropFileName(wParam)
invoke Read_File_Inx,hEdit,fname
invoke SetWindowText,hWnd,fname
jmp DropOut
@@:
fn MessageBox,hWnd,"Please save existing content first","Current content is not saved",MB_OK
DropOut:
; ||||||||||||||||||||||||||||||||||||||||||||||||||||||||