I create this menu using code placed by Sertac Akyuz in answer here:
Show the default right-click menu - Delphi
and it works good, but there is problem:
When I click in created menu: delete (delete file to recycled) - it asks me: Are you sure want to delete?
When i click Yes - it works ok, but when I click no - it shows me an error, I see in debugger, error is on line:
OleCheck(ContextMenu.InvokeCommand(CommandInfo));
Error: ###(gdb unparsed remainder:s 0x0 out of bounds>)###.
I use Lazarus, but i think, that in Delphi it is actual too.
It seems to me, that the menu (windows) try to return to my program the answer - No, and in this situation error occurs.
How to solve this problem? How correct solve this situation with answer 'No'?
I not sure, but may be answer can be found in this file: `doublecmd\trunk\src\platform\win\ushellcontextmenu.pas` – Abelisto Mar 16 '13 at 20:10